/** * * Loads the segment only if the session has already been started, or if * a session is available (in which case it resumes the session first). * * @return bool * */ protected function resumeSession() { if ($this->session->isStarted() || $this->session->resume()) { $this->load(); return true; } return false; }