#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  long long t;
  cin >> t;
  while (t--) {
    long long n;
    cin >> n;
    vector<long long> a;
    a.resize(n);
    for (long long i = 0; i < n; i++) cin >> a[i];
    sort(a.begin(), a.end());
    int cnt = 0;
    for (long long i = 0; i < n - 1; i++) {
      if ((a[i + 1] - a[i]) > 1) cnt++;
    }
    if (cnt != 0)
      cout << "NO\n";
    else {
      cout << "YES\n";
    }
  }
  return 0;
}
