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