Improve the cookie::isLogged method