I need to know if a link will open.
There isn't a way for you to know if a link will work but there is for Safari with something called Smart App Banners
The content of the document......
What it basically does is checking if an app is installed. If it's not installed the user will be directed to the app store. If it's installed the user will be able to open the app from the website with the relevant data you'd be normally passing using the url scheme. You could use if for Google Maps.
The down side of this is that it will only work on Safari but it's still better than nothing.