Do you mind changing this to `Object.prototype.hasOwnProperty.call(...)`? That's the canonical location for this function.