Used object.hasOwnProperty to test if parent rows have parent_key field