Changed 'key in obj' checks to 'obj.hasOwnProperty(key)' for clarity and to avoid any edge case scenarios.
5.0.13