#include <bits/stdc++.h>
using namespace std;
const int MAX_N = 100;
string s[MAX_N];
int div(int n) {
  int ans = 0;
  for (int i = 1; i * i <= n; i++) {
    if (n % i == 0) ans += 2;
  }
  int u = sqrt(n);
  if (u * u == n) ans--;
  return ans;
}
int main() {
  ios::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  ;
  int t;
  cin >> t;
  while (t--) {
    int n;
    cin >> n;
    int a[n];
    for (int i = 0; i < n; i++) {
      cin >> a[i];
    }
    sort(a, a + n);
    bool ok = true;
    for (int i = 0; i < n - 1; i++) {
      if ((a[i + 1] - a[i]) > 1) {
        ok = false;
        break;
      }
    }
    if (ok)
      cout << "YES" << endl;
    else
      cout << "NO" << endl;
  }
  return 0;
}
