Check if file exists before trying to open it, to avoid exception and
logs