How to tell if a tree needs pruning