public function hasProperty($name) { if ($this->properties === null) { $this->getProperties(); } return isset($this->properties[$name]); }