Use `is_admin_bar_showing` instead of `is_user_logged_in`.