Check if result is empty
Automatically create index