Add hasOwnProperty checks when using for in loops
Add hasOwnProperty checks when using for in loops