Change method of testing for undefined in equivArrays