Typo here: `hasOwnPropert` (missing `y`)