modifies output_latest_epa_photos to test if photos is empty earlier