Detecting SD Card Insertion

Sorry if I missed this, but I can’t find an example of testing for SD card insertion (other than trying to mount “SD” in a try/catch block). Is there a pin connected to the switch in the SD card slot?

The problem is that those little micro SD card connectors do not have an SD detect pin. We are trying to see if there is a way to work around this in software but for now the only way is to try to mount the SD.