Modifying the `icons` array may have unexpected side effects. I think it's better to save the valid icons in a different array?