public function __isset($name) { if (parent::__isset($name)) { return true; } return in_array($name, $this->eventnames); }