/** * {@inheritdoc} */ public function validate($validator) { if (!$this->value) { return true; } return parent::validate($validator); }