sanity and safety checks in trees for empty trees