Ensure values are compared when selecting a term; check empty arrays.