public function getPageById($id) { if (isset($this->pageById[$id])) { return $this->pageById[$id]; } else { return null; } }