using Object.prototype.hasOwnProperty