#include <bits/stdc++.h>
using namespace std;
int main() {
  long long testcases;
  cin >> testcases;
  while (testcases--) {
    long long size;
    cin >> size;
    long long arr[size];
    for (int i = 0; i < size; i++) {
      cin >> arr[i];
    }
    int p = 1;
    sort(arr, arr + size);
    for (int i = 0; i < size - 1; i++) {
      if ((arr[i + 1] - arr[i]) > 1) {
        p = 0;
        break;
      }
    }
    if (p == 0)
      cout << "NO" << endl;
    else
      cout << "YES" << endl;
  }
}
