Guard against nodes that do not have value array in isAllFolded of
ASTManager