Checking the exit code rather than the empty string has the advantage that you can identify what was found (comparison consumes the string, so it's not printed). It makes debugging much easier when something is wrong.
1.8 KiB
Executable File
1.8 KiB
Executable File