Ya, nothing shortens a battery's life like letting it sit idle for extended periods.
Here's a shocker... Last week I was cleaning up my old van cause I'm selling it and I noticed the date on the battery, the mid-line Walmart battery. Installed July/03.
I certainly got some years out of that battery, but then that vehicle was always driven and the battery well cared for by keeping it clean.
Dan