Hello again Beck,
Yes, there is, and you can do it like so:
If you are having problems using this method because the fact that the tree is not loaded before you call this method, you could try adding this line:
in the first line of the method.
Hope this helps, if you have any other questions or comments, please let me know,
Best Regards,
Emanuel Varga