Instead of using a custom header use the standard Kirigami.ListSectionHeader. Also hide empty sections instead of showing a placeholder.