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