correct checking if ReadStat succeeded