#include <bits/stdc++.h>
using namespace std;
void solve() {
  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 f = 0;
  for (long long i = 1; i < n; ++i) {
    if (abs(a[i] - a[i - 1]) > 1) {
      f = 1;
    }
  }
  if (!f) {
    cout << "YES" << '\n';
    return;
  }
  cout << "NO" << '\n';
}
int32_t main() {
  ios_base::sync_with_stdio(false);
  cin.tie(NULL);
  cout.tie(NULL);
  long long T = 1;
  cin >> T;
  for (long long i = 1; i <= T; ++i) {
    solve();
  }
  return 0;
}
