Check before indexing.