I don’t know if this is going to make any sense to you or not but…
I would set up another array to hold a list of the features that I’ve already shown. Then I’d check each feature to see if it’s already in that array and if it is I’d skip it. As I display each feature for a package I’d add an entry to this new array so that it’s not shown again.
Hope that helps.