avoid NameError on treeWasEmpty