#include <bits/stdc++.h>
using namespace std;
int x, y, z, n, ar[100];
int main() {
  cin >> x;
  while (x--) {
    cin >> y;
    for (int i = 0; i < y; i++) {
      cin >> ar[i];
    }
    sort(ar, ar + y);
    bool ok = 1;
    for (int i = 1; i < y; i++) {
      if (ar[i] - ar[i - 1] > 1) ok = 0;
    }
    if (ok)
      cout << "YES\n";
    else
      cout << "NO\n";
  }
}
