Added method to simplify checking a set for the existence of a value.