#include <bits/stdc++.h>
using namespace std;
vector<bool> primes(1000002, 1);
void eratos(long long n) {
  primes[1] = 0;
  for (long long i = 2; i <= n; i++) {
    if (primes[i]) {
      for (long long j = i * i; j <= n; j += i) primes[j] = 0;
    }
  }
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  long long t;
  cin >> t;
  while (t--) {
    long long n;
    cin >> n;
    vector<long long> a(n);
    bool st = 0;
    for (int i = 0; i < n; i++) cin >> a[i];
    sort(a.begin(), a.end());
    for (int i = 0; i < n - 1; i++) {
      if (a[i + 1] - a[i] > 1) {
        st = 1;
        break;
      }
    }
    if (st)
      cout << "NO";
    else
      cout << "YES";
    cout << '\n';
  }
}
