#include <bits/stdc++.h>
using namespace std;
int main() {
  short int t;
  cin >> t;
  for (int i = 0; i < t; i++) {
    short int n;
    cin >> n;
    short int array[n], count = 0;
    for (int j = 0; j < n; j++) {
      cin >> array[j];
    }
    sort(array, array + n);
    for (int j = 1; j < n; j++) {
      if (abs(array[j] - array[j - 1]) > 1) {
        count++;
      }
    }
    if (count == 0) {
      cout << "YES" << endl;
    } else {
      cout << "NO" << endl;
    }
  }
  return 0;
}
