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