Check index exists before dropping