Corrected hasOwnProperty on object prototype