Fixed Tree#hasChildren() method.