def foo(): if bar == None: print("none")