check phonegap