Moved exist_with_result() into APIUser for deauthentication.