Replace is_guest_user by current_user.is_anonymous