Check for unique indices