undefined or null will break the ng-repeat in the partial (tree has to be either empty array or empty object).