$field) $query->where($field, $value[$i]); // Validation result will be false if any rows match the combination return ($query->count() == 0); });