code: public static boolean equalsAny(boolean _ignoreCase, String _str, String... _compare) {
          if (_str == null && _compare == null || _compare.length == 0) {
              return true;
          } else if (_str == null) {
              return false;
          }
  
          for (String cmp : _compare) {
              if (_ignoreCase) {
                  if (cmp.equalsIgnoreCase(_str)) {
                      return true;
                  }
              } else {
                  if (cmp.equals(_str)) {
                      return true;
                  }
              }
          }
          return false;
      }
docs: Checks if any of the given strings in _compare is equal to _str (either case-insensitive or case-sensitive).<br>
  Will return true if both parameters are null or _str is null and _compare is empty.
  
  @param _ignoreCase ignore case
  @param _str string to check
  @param _compare compare strings
  @return true if equal false otherwise