prevent inherited properties using hasOwnProperty
Merge pull request #150 from joserobleda/master

Use hasOwnProperty to prevent erros