#include <bits/stdc++.h>
using namespace std;
using ll = long long int;
using ull = unsigned long long int;
using ld = long double;
using pii = pair<int, int>;
using pll = pair<ll, ll>;
using vi = vector<int>;
using vl = vector<ll>;
using vii = vector<pii>;
using vll = vector<pll>;
const ld pi = acosl(-1);
const int inf = (int)1e9 + 7;
const ll llinf = (ll)1e18 + 7;
const ld eps = 1e-7;
template <typename T>
inline bool powerof2(T a) {
  return (a && (!(a & (a - 1))));
}
template <typename T>
inline T log_2(T a) {
  T res = -1;
  while (a) {
    a /= 2;
    res++;
  }
  return res;
}
void solve() {
  int n;
  cin >> n;
  vi arr(n);
  for (auto& i : arr) cin >> i;
  sort((arr).begin(), (arr).end(), greater<int>());
  for (int i = (int)(0); i <= (int)(n - 2); i++) {
    if (arr[i] - arr[i + 1] > 1) {
      cout << "NO" << '\n';
      return;
    }
  }
  cout << "YES" << '\n';
}
int main() {
  ios::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  cout << fixed << setprecision(15);
  cerr << fixed << setprecision(10);
  int tc;
  cin >> tc;
  while (tc--) {
    solve();
  }
  return 0;
}
