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