public function __isset($key) { return $this->schema()->hasAttribute($key) && $this->{$key} !== null; }