added hasOwnProperty check to the getter
Merge pull request #1 from abhinayrathore/patch-1

added hasOwnProperty check to the getter