check for empty index.