replaced == None with is None