#include <bits/stdc++.h>
using namespace std;
void solve() {
  int n;
  cin >> n;
  int a[n];
  for (register int i = 0; i < n; i++) cin >> a[i];
  sort(a, a + n);
  if (n == 1)
    cout << "YES"
         << "\n";
  else {
    int i;
    for (i = 0; i < n - 1; i++) {
      if (a[i + 1] - a[i] > 1) break;
    }
    if (i < n - 1)
      cout << "NO"
           << "\n";
    else
      cout << "YES"
           << "\n";
  }
}
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie();
  cout.tie();
  ;
  int t = 1;
  cin >> t;
  while (t--) {
    solve();
  }
}
