Make sure it works if the session is empty