What is best way to contain which weapons player buy

So i am making shop system for my game and right now im using bunch of “DeoesPlayerOwn{weapon name}” variables to be able to save bought weapons but is there any way to do it better?

I think the best way is structures in the array.