#include <bits/stdc++.h>
using namespace std;
long long a[200000];
int main() {
  {
    ios_base::sync_with_stdio(false);
    cin.tie(0);
  };
  long long i, j, k, cnt = 0, n, m, mod, t, mx, mn, l1, l2, r1, r2, r;
  cin >> t;
  while (t--) {
    cin >> n;
    k = 1;
    for (i = 0; i < n; i++) cin >> a[i];
    sort(a, a + n);
    for (i = 1; i < n; i++)
      if (a[i] - a[i - 1] > 1) k = 0;
    k ? cout << "YES" << endl : cout << "NO" << endl;
  }
  return 0;
}
