function getValue() { $val = parent::getValue(); if (is_array($val)) { return $val[0]; } return $val; }