using hasOwnProperty in for..in loop, just in case