Today, if a table has activated subRows, then all rows can be expanded, and it is only when you click on the expand button that you know whether there are children or not.
Add a hasChildrenExpression to only offer the expand option for rows that have children.