if not user is None: print(user.name) if user is not None: print(user.name)