#include <bits/stdc++.h>
using namespace std;
long long int M = 1000000000 + 7;
long long int power(long long int x, long long int n) {
  long long int result = 1;
  while (n > 0) {
    if (n % 2 == 1) result = (result * x) % M;
    x = (x * x) % M;
    n = n / 2;
  }
  return result;
}
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  ;
  long long int tt = 1;
  cin >> tt;
  while (tt--) {
    long long int n;
    cin >> n;
    long long int a[n];
    for (long long int i = 0; i < n; i++) cin >> a[i];
    sort(a, a + n);
    bool f = 0;
    for (long long int i = 0; i < n - 1; i++) {
      if (a[i + 1] - a[i] > 1) {
        f = 1;
        break;
      }
    }
    if (f)
      cout << "NO\n";
    else
      cout << "YES\n";
  }
  return 0;
}
