Check to see if index is generated