code: public static boolean containsKey(@Nullable Bundle bundle, @Nullable String key) {
          return bundle != null && bundle.containsKey(key);
      }
docs: Checks if the bundle contains a specified key or not.
  If bundle is null, this method will return false;
  @param bundle a bundle.
  @param key a key.
  @return true if bundle is not null and the key exists in the bundle, false otherwise.
  @see android.os.Bundle#containsKey(String)