check if xml file exists before attempting to load