Is there really a shelf life on helmets of 2

years give or take?

Very important to know this, mine is older and I’ve not seriously crashed but I was told at 4 years it is useless.

Any thoughts?