Add check if index already exists