private ICollection <IndexerCategory> GetNextCategory(IElement row, ICollection <IndexerCategory> currentCategories) { var nextCategoryName = GetCategoryName(row); if (nextCategoryName != null) { currentCategories = _categories.MapTrackerCatDescToNewznab(nextCategoryName); if (currentCategories.Count == 0) { return(_defaultCategories); } } return(currentCategories); }