Need to check for existance of the index before querying it