Oh, of course it is related. Also, apart from declining mental performance, with age comes valuable experience.
He was so awesome to have on the team, at the cost of sometimes having to watch him crawl toward a few lines of code. Not a hard choice in my opinion.
Of course I've seen the whole spectrum. Useless old people. Useless young people. It's best to simply be a meritocracy.