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