Built-in itemExists function

Is there any built-in function (or fast method) to check whether or not specified (by ID) item exists in the tree collection?

You may try to call getItemText method. It’ll return 0 if node isn’t found:

if(!tree.getItemText(id))
alert(“the item doesn’t exist!”)