What does this part of my headlamp do?

Just curious - does this contain any important circuitry other than a red LED indicator light? It screws onto the end of battery case on my LEDLenser iLH8r head lamp.

Looks to me like the on/off switch but with an indicator included.