Handle empty array in IN and NOT IN expressions