IsLoggedIn()) { $this->response = new ApiJsonResponse(ServerStatus::BAD_REQUEST); $this->response->setParameter('success', false); $this->response->setMessage('You were not logged in!'); return; } $session->Destroy(); $this->response = new ApiJsonResponse(); $this->response->setParameter('success', true); } }