Won't it throw the same "FileNotFound" exception in that case? The issue being bothering to check if it exists in the first place I suppose.
Yes, but it won't log the error as it is clearly the intention of the first check.