#14: moved the isLeaf function into conjugProp since it is only used there