NSArraysHasEqualObjects function.