Exit if no results instead of crashing