A safer `.hasOwnProperty()`