#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  int TESTS = 1;
  cin >> TESTS;
  while (TESTS--) {
    int i, n, f = 1;
    cin >> n;
    vector<int> v(n);
    for (i = 0; i < n; i++) cin >> v[i];
    sort((v).begin(), (v).end());
    for (i = 1; i < n; i++) {
      if (v[i] - v[i - 1] > 1) f = 0;
    }
    (f) ? cout << "YES" << endl : cout << "NO" << endl;
  }
}
