The biggest pitfall during the tree population is to accidentally add the wrong node. Failing early is a nice way to discover those bugs quickly.