checking for non existing index