Check 'hasOwnProperty' when traversing object.
Formatting
Merge pull request #1 from rtm/fix/add-check-for-hasOwnProperty

Check 'hasOwnProperty' when traversing object.