Check if index exists