check for None in equality test