function checkout() { if (isset($_SESSION[$this->key])) { $out = $_SESSION[$this->key]; unset($_SESSION[$this->key]); return $out; } return []; }