Replaced use of has statement with Object.prototype.hasOwnProperty.call