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