Revert "use the `in` operator instead of `Object#hasOwnProperty`. #2"

This reverts commit d811d5acba5b22def946328e394972a2879c4f81.