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