Revert "fixed missing hasOwnProperty check"

This reverts commit da4e81bd325da59bbdcb72abdc1c6b8242ba6d35.