2 years is good for a betta. They are generally close to a year old when you get them at the pet store.

Hopefully he's okay. If he does pass on, then I am sure it was of peaceful old age.