swap equals() arguments to handle null