#include <bits/stdc++.h>
using namespace std;
int main() {
  ios_base::sync_with_stdio(0);
  cin.tie(0);
  cout.tie(0);
  int test, n;
  cin >> test;
  while (test-- != 0) {
    cin >> n;
    int a[n];
    for (int i = 0; i < n; i++) cin >> a[i];
    sort(a, a + n);
    if (n == 1) {
      cout << "YES" << endl;
    } else {
      bool ans = true;
      for (int i = 0; i < n - 1; i++) {
        if (a[i + 1] - a[i] > 1) {
          ans = false;
          break;
        }
      }
      if (ans)
        cout << "YES" << endl;
      else {
        cout << "NO" << endl;
      }
    }
  }
}
