#include <bits/stdc++.h>
using namespace std;
int main() {
int t;
cin >> t;
while(t--){
int n;
cin >> n;
int x[n];
for(int i=0;i<n;i++){
cin >> x[i];
}
//cout << x[1] - x[0] << endl;
if(n > 2 || (x[1] - x[0]) <= 1)
cout << "NO\n";
else
cout << "YES\n";
}
}
I2luY2x1ZGUgPGJpdHMvc3RkYysrLmg+Cgp1c2luZyBuYW1lc3BhY2Ugc3RkOwoKaW50IG1haW4oKSB7CiAgICBpbnQgdDsKICAgIGNpbiA+PiB0OwogICAgd2hpbGUodC0tKXsKICAgIAlpbnQgbjsKICAgIAljaW4gPj4gbjsKICAgIAlpbnQgeFtuXTsKICAgIAlmb3IoaW50IGk9MDtpPG47aSsrKXsKICAgIAkJY2luID4+IHhbaV07CiAgICAJfQogICAgCS8vY291dCA8PCB4WzFdIC0geFswXSA8PCBlbmRsOwogICAgCWlmKG4gPiAyIHx8ICh4WzFdIC0geFswXSkgPD0gMSkKICAgIAkJY291dCA8PCAiTk9cbiI7CiAgICAJZWxzZQogICAgCQljb3V0IDw8ICJZRVNcbiI7CiAgICB9Cn0K