public function allowsNull() { if ($this->isArray() || $this->isCallable()) { return strtolower($this->defaultValueDefinition) === 'null'; } return !empty($this->defaultValueDefinition); }