Pool and SPA light life expectancy

I have Pool and Spa lights installed and they were there for almost 20 years. is it time to change them ? I pulled them out the cord looks swallen with some teared out spots but the light works fine, maybe not as bright anymore though…

Yout thoughts?