Function isReplay