checking if PhoneGap is undefined