public function __isset($name) { try { return $this->__get($name) !== null; } catch (\Exception $e) { return false; } }