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