Check if file exists before loading