public function get($key) { if ($this->session !== null) { return $this->session->get($key); } return null; }