Check on isLeaf