Detect not found error early.