#include <bits/stdc++.h>
using namespace std;
int v[200005];
int main() {
  int i, n, t;
  cin >> t;
  while (t--) {
    cin >> n;
    for (i = 1; i <= n; i++) cin >> v[i];
    sort(v + 1, v + n + 1);
    int ok = 1;
    for (i = 2; i <= n && ok == 1; i++)
      if (v[i] - v[i - 1] > 1) ok = 0;
    if (ok == 1)
      cout << "YES";
    else
      cout << "NO";
    cout << '\n';
  }
  return 0;
}
