public function __isset($name) { if (in_array($name, $this->_properties)) { return isset($this->propertiesData[$name]); } throw new \InvalidArgumentException(sprintf('Unknown property "%s" for the object %s', $name, get_class($this))); }