replace == None with is None