Can you do `$identity = $authService->getIdentity()` instead, and then check `$identity instanceof UserInterface`?