private function isLoggedIn(ResponseInterface $response)
    {
        if ($response->getStatusCode() != 302) {
            return true;
        }

        $location = $response->getHeader('Location');
        if (strpos($location, "/en/auth") !== false) {
            return false;
        }

        return true;
    }