Always check hasOwnProperty when iterating over members of objects