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