private void requireType(Type... types) {
        requirePresent();
        if (!List.of(types).contains(inspector.type())) throw createInvalidTypeException(types);
    }
@return true if the JSON field was present but its value was 'null'
vespajlib/src/main/java/ai/vespa/json/Json.java