docs: public static boolean isConnected(@NonNull final Context context) {
          final Object service = context.getSystemService(Context.CONNECTIVITY_SERVICE);
          final ConnectivityManager cm = (ConnectivityManager) service;
          final NetworkInfo netInfo = cm.getActiveNetworkInfo();
          return netInfo != null && netInfo.isConnected();
      }