these should be keys and not values from what I see below, that would save you the isset check.
And they should be renamed to 'count' and 'list' for instance.