Verify if scheme index exists before using it