code: private static boolean contains(int[] values, int searchValue) {
          Objects.requireNonNull(values);
          for (int value : values) {
              if (searchValue == value) {
                  return true;
              }
          }
          return false;
      }
docs: Checks an given value exists in an array.
  
  @param values array of ints
  @param searchValue value to check for existence
  @return true if value exists in the array, false otherwise