#include <bits/stdc++.h>
using namespace std;
int main() {
  int test;
  cin >> test;
  while (test--) {
    long long n;
    bool flag = true;
    cin >> n;
    long long arr[n];
    for (long long i = 0; i < n; i++) {
      cin >> arr[i];
    }
    if (n == 1)
      cout << "YES" << endl;
    else {
      sort(arr, arr + n);
      long long diff = arr[0];
      for (long long i = 0; i < n - 1; i++) {
        long long temp_diff = arr[i + 1] - arr[i];
        if (temp_diff > 1) {
          flag = false;
          break;
        }
      }
      if (flag)
        cout << "YES" << endl;
      else
        cout << "NO" << endl;
    }
  }
}
