#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  cin >> t;
  for (int x = 0; x < t; x++) {
    long long int n;
    cin >> n;
    long long int a[n];
    for (int i = 0; i < n; i++) {
      cin >> a[i];
    }
    if (n == 1) {
      cout << "YES" << endl;
    } else {
      sort(a, a + n);
      int flag = 0;
      for (int i = 1; i < n; i++) {
        if (a[i] - a[i - 1] > 1) {
          flag = 1;
        }
      }
      if (flag == 1) {
        cout << "NO" << endl;
      } else {
        cout << "YES" << endl;
      }
    }
  }
  return 0;
}
