hasProperty and hasOwnProperty
Handle null or undefined
Merge pull request #2 from paf31/hasProperty

hasProperty and hasOwnProperty