change Set.has() to hasOwnProperty()