Added check for run number existence