public function getDefaultPage() { if (isset($this->pages[0])) { return $this->pages[0]; } else { return null; } }