#include <bits/stdc++.h>
const long long MAX = 200005;
const long long SQN = 330;
const long long LG = 31;
const double PI = atan(1) * 4;
using namespace std;
int main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long t;
  cin >> t;
  while (t--) {
    long long n;
    cin >> n;
    long long a[n];
    for (long long i = 0; i < n; i++) cin >> a[i];
    sort(a, a + n);
    long long flag = 1;
    for (long long i = 1; i < n; i++) {
      if (a[i] - a[i - 1] > 1) flag = 0;
    }
    if (flag)
      cout << "YES" << '\n';
    else
      cout << "NO" << '\n';
  }
}
