is_leaf function

Check if a node of a tree is a leaf