only add expand/collapse class if the tree node has children - otherwise add the leaf class