Function TreeItem.isRoot

returns true if this item is root item

bool isRoot() @property;