public function __isset($name) { try { if (array_key_exists($name, $this->data)) { return true; } else { $this->getAttr($name); return true; } } catch (InvalidArgumentException $e) { return false; } }