Add mention of hasOwnProperty check to docs