[Fix] Fix typo in #hasOwnProperty check