TRUE when the .vtri sidecar is present, readable, in the current format,
and built against the store as it now stands. An index that no longer matches
the store, or that cannot be read, reads as FALSE, because queries ignore
it and fall back to a scan; create_index() rebuilds it.
Examples
f <- tempfile(fileext = ".vtr")
write_vtr(data.frame(id = letters, val = 1:26, stringsAsFactors = FALSE), f)
has_index(f, "id") # FALSE
create_index(f, "id")
has_index(f, "id") # TRUE
unlink(c(f, paste0(f, ".id.vtri")))