#include <bits/stdc++.h>
const long long mod = 1e9 + 7;
const int maxn = 1000000;
using namespace std;
int main() {
  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 b = true;
    for (int i = 1; i < n; i++) {
      if (a[i] - a[i - 1] > 1) {
        b = false;
        break;
      }
    }
    if (b) {
      cout << "YES" << endl;
    } else {
      cout << "NO" << endl;
    }
  }
}
