@aik099 
```'property' in object``` can be used instead of  ```object.hasOwnProperty('property')```.
This is part of the original source code.

@zaib-nisa-confiz 
I'm not sure what all is converted to boolean false if used implicit type conversion !? Maybe it's enough to test with ```instanceof```