[MONDRIAN-1791] added isLeaf function

isLeaf function