Using GPRS Shield and RTC simultaneously on Stalker v2.3

Before I bent away these pins, I used them to check if the shield was on. I don't know why it worked, but it did. Now I need a new way to check if the shield is on. Any suggestions?