realised that I didn't need to check if the file exists, can just try to load it and use the error handling there - reduce code