fix isAuthenticated - return false and not undefined