public function __isset($key) { return !is_null($this->getAttribute($key)); }
/** * Check if an attribute exists. * * @param string $key * @return bool */ public function __isset($key) { return in_array($key, $this->translatedAttributes) || parent::__isset($key); }