Fix validateExists to work with arrays as a whole