That'll work.
In my case, I was adding generic media-type icons (e.g. a book or a game controller or a roll of film) to categories if I didn't have a more specific icon. It was appearing multiple times for crossovers though.
In hindsight, I also think I could've made a separate rule with first_non_empty.
Thank you