Grouping Datatable indexes by the same name?

you would want to check the array prior to creating the widget. what your doing currently is creating a widget but never adding it to the screen until after the check. the widget still exists though so it may be taking a little performance away. instead move the create widget to somewhere after the branch node, then it will only be created if its needed.