wrote isALeaf