Function TreeItem.hasChildren

returns true if item has at least one child

bool hasChildren() @property;