check whether to create index (allow indexing scripts to be run in any order)