Verify a directory exists before searching it