It's a light-emitting diode (LED). Connecting it to a battery and seeing if it lights up is the simplest approach to see if it is damaged. Because you can't unscrew the white plastic unit, the connection wires, resistor, or LED itself could be harmed if the LED doesn't glow.