Improved detection of parent to hide

This is for when there is no data in the section, now it is more
future-proof - assuming that back_section_header will house each
section.