Check if alias exists before create the index