is_user_logged_in()

Determines whether the current visitor is a logged in user.