Wearing the hat should be optional like in most other major airlines.
It may be in 'some' airlines but I doubt it is the rule in 'most'.
If hats are issued then they should be worn, the alternative is to not issue hats. The idea that wearing is optional with, perhaps, half the crew wearing a hat and the other half not is, to me, ridiculous.