but I think that insertObj.leaves is always defined due to previous instruction, right?