import sys input = sys.stdin.readline from heapq import * T=int(input()) for t in range(T): N=int(input()) A=list(map(lambda x:-int(x),input().split())) heapify(A) while len(A)>2: a,b,c=heappop(A),heappop(A),heappop(A) a-=c b-=c if a<0: heappush(A, a) if b<0: heappush(A, b) print("Yes" if len(A)==0 else "No")