code: public static boolean isIntentAvailable(Context context, Intent intent) {
          PackageManager packageManager = context.getPackageManager();
          List<ResolveInfo> list = packageManager.queryIntentActivities(intent, PackageManager.MATCH_DEFAULT_ONLY);
          return list.size() > 0;
      }
docs: Check that in the system exists application which can handle this intent
  
  @param context Application context
  @param intent  Checked intent
  @return true if intent consumer exists, false otherwise