before checking for empty list in tree