binding function for Set.prototype.has.