public function hasProperty($name) { $properties = $this->getProperties(); return array_key_exists($name, $properties); }