is_tree_prior function

Determine if an object is a valid tree prior