seen_fields.hasOwnProperty(propname) would be more correct.  But that only matters if you worry that OGG will start including metadata with names like "toString" or "valueOf".