/** * @return bool */ public function isRequired() : bool { return $this->field->hasAttribute('required'); }