If you use `Object.create(null)` you do not need to use hasOwnProperty.