is_phylo function

Checks if the input is a phylogeny