To check if a given value exists in a set, use .has() method:
.has()
mySet.has(someVal);
Will return true if someVal appears in the set, false otherwise.
true
someVal
false