#include <bits/stdc++.h>
using namespace std;
const int N = 1e5 + 5;
const long long M = 1e9 + 7;
const long long inf = 1e18 + 5;
int main() {
  int T;
  scanf("%d", &T);
  while (T--) {
    int n;
    scanf("%d", &n);
    int a[n];
    for (int i = 0; i < n; i++) scanf("%d", &a[i]);
    sort(a, a + n);
    int flag = 0;
    for (int i = 1; i < n; i++) {
      if (a[i] - a[i - 1] > 1) flag = 1;
    }
    if (flag)
      printf("NO\n");
    else
      printf("YES\n");
  }
}
