t = int(input()) for _ in range(t): n, m = map(int, input().split()) a = list(map(int, input().split())) ok = True for i in range(n-1): if a[i]+a[i+1] < m: ok = False print("Yes" if ok else "No")