Allow for both forms of isequal with nan