Every leaf node in jstree has the
class='jstree-leaf'
in its html. So you could check this in the
$.each(function(e,data){ });
in the
.bind('loaded.jstree',function(e,data){
//code here
});
to check whether the class exists in the tree or not. The each loop in the loaded event traverses through all the nodes in jstree.
Hope you got some idea. Rest you can refer the documentation for syntaxes.
Let me know in case of any queries.