This Cordova / PhoneGap plugin allows you to check if an app is installed.