Removes unnecessary check if this is not cordova project