This code is unreliable so keep it out. It's more important that the user is actually logged in.