|
if (!$this->field->required && !$this->isMultiple) { |
If the field is not set PHP currently shows a notice warning.
If field can be set without a model, then extra null check should be added, otherwise it should be moved to the condition right below which checks if model is set.