Getting Actual Object Type

As I mention on my previous question, I am working on OCCT wrapper for UE5.
I made STEP and IGES to GLB converter and right now working on an actual CAD importer.

My code is this.
https://gist.github.com/ffreality/bbf8bae595705c809716e5d2e36dae18

I could successfully parsed a CAD file but in order to decide when should I use "Static Mesh Component" or "Scene Component" I need to know data type.

But I saw that if a component contains only parts or geometry objects as children, CAD Assistant visualize them as single object. Actualy this what I want because I don't want to create different static meshes for every sections of for example a bolt (such as head, body and teeth)

If you look at my screenshot or STEP file, you can see that Wood Top is a "sub-assembly" but contains only meshes.
So, CAD assistant shows it as single object without drop down (FreeCAD creates dropdown neverthless) but when I want to learn its type, OCCT says it is "COMPOUND".

Is there a specific function to learn that if it is actually a sub-assembly with sub-assembly children or should I create my own function to look its direct children's type ?