#include <bits/stdc++.h>
using namespace std;
using ll = long long;
using ull = unsigned long long;
int t, n;
int main() {
  ios::sync_with_stdio(false);
  cin.tie(0), cout.tie(0);
  cin >> t;
  while (t--) {
    cin >> n;
    set<int> s;
    for (int i = 0, x; i < n; ++i) {
      cin >> x;
      s.insert(x);
    }
    vector<int> b;
    for (auto v : s) {
      b.push_back(v);
    }
    bool f = true;
    for (int i = 1; i < (int)b.size(); ++i) {
      if (b[i] - b[i - 1] != 1) {
        f = false;
        break;
      }
    }
    cout << (f ? "YES" : "NO") << endl;
  }
  return 0;
}
