Use nested where for where arrays