protected function validateValue($value) { $result = parent::validateValue($value); return empty($result) ? $this->validateImage($value) : $result; }