private int findName(String name, Options options) {
    for (int i = 0, size = options.strings.length; i < size; i++) {
      if (name.equals(options.strings[i])) {
        peeked = PEEKED_NONE;
        pathNames[stackSize - 1] = name;

        return i;
      }
    }
    return -1;
  }
If {@code name} is in {@code options} this consumes it and returns its index.
Otherwise this returns -1 and no name is consumed.
lottie/src/main/java/com/airbnb/lottie/parser/moshi/JsonUtf8Reader.java