#include <bits/stdc++.h>
using namespace std;
int main() {
  int n;
  cin >> n;
  while (n--) {
    vector<int> v;
    bool bb = true;
    int x, a;
    ;
    cin >> a;
    for (int i = 0; i < a; i++) {
      cin >> x;
      v.push_back(x);
    }
    sort(v.begin(), v.end());
    for (int i = 1; i < a; i++) {
      if (v[i] - v[i - 1] > 1) bb = false;
    }
    if (bb == true)
      cout << "YES" << endl;
    else
      cout << "NO" << endl;
  }
  return 0;
}
