I'm not sure that would work. I want to test if there's no children (I'll had a comment there), but tree isn't false, there's at least the root node if we're here.