How to only render `PluginDocumentSettingPanel` if there are children

How to only render `PluginDocumentSettingPanel` if there are children