#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  for (int tt = 0; tt < t; tt++) {
    int n;
    cin >> n;
    vector<long long> p(n);
    for (int i = 0; i < n; i++) cin >> p[i];
    sort(p.begin(), p.end());
    bool flag = true;
    for (int i = 1; i < n; i++) {
      if (abs(p[i] - p[i - 1] > 1)) {
        flag = false;
        break;
      }
    }
    (flag) ? cout << "YES\n" : cout << "NO\n";
  }
  return 0;
}
