Rename isLeaf to leaf