replace $ne with $nin for arrays