Change foo==foo to foo!=None