#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long x;
  cin >> x;
  while (x--) {
    long long y;
    cin >> y;
    long long a[y];
    for (int i = 0; i < y; i++) {
      cin >> a[i];
    }
    sort(a, a + y);
    long long flg = 0;
    for (long long i = 1; i < y; i++) {
      if (a[i] - a[i - 1] > 1) {
        flg = 1;
      }
    }
    if (flg == 1) {
      cout << "NO"
           << "\n";
    } else {
      cout << "YES"
           << "\n";
    }
  }
  return 0;
}
