hasOwnProperty doesn't work with Object.create