2 years? For electronics that's nothing, I am surprised the battery was still okay though, usually if they're stored that long they drain and tend to leak.
Especially older electronics devices which were made with larger junctions and more discrete components if the device isn't being used there is no limit to its shelf life.
Modern ultra high density computer components might have more issues with static aging as if I'm not mistaken the junctions tend to diffuse over time because the junctions are so small and close together.