public function pub($id, $data) { if (!isset($this->events[$id])) { return false; } return $this->events[$id]->pub($data); }