Fixed typo .. name was returning "Album" instead of "IsFolder", so IsFolder comparisons never got applied.