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