code: public boolean hasNext() {
      synchronized (lock) {
        try {
          return parser.peek() != JsonToken.END_DOCUMENT;
        } catch (MalformedJsonException e) {
          throw new JsonSyntaxException(e);
        } catch (IOException e) {
          throw new JsonIOException(e);
        }
      }
    }
docs: Returns true if a {@link JsonElement} is available on the input for consumption
  @return true if a {@link JsonElement} is available on the input, false otherwise
  @since 1.4