#include <bits/stdc++.h>
using namespace std;
int main() {
  int t;
  scanf("%d", &t);
  while (t--) {
    int n;
    scanf("%d", &n);
    int a[100];
    for (int i = 0; i < n; i++) scanf("%d", a + i);
    sort(a, a + n);
    bool ok = true;
    for (int i = 0; i < n - 1; i++) {
      if (a[i + 1] - a[i] > 1) ok = false;
    }
    if (ok)
      printf("YES\n");
    else
      printf("NO\n");
  }
  return 0;
}
