You mean look for it in two possible locations?
Only way to do that is to try the one location and, if not found, look in the other one.
You could do that by looking at the http.status: If it was 404 (file not found) instead of 200, then you would have to tell your code to look in the other folder.
Somewhat more complex code.
Why would you not know what folder a file is in???
An optimist sees the glass as half full.
A pessimist sees the glass as half empty.
A realist drinks it no matter how much there is.