I thought it was always the 4th offical who took over if the ref went down? The replacement was on the line in the first half.
The replacement for the ref is technically at the discretion of the ref. Yes, in top level leagues, the 4th official is a direct replacement.l and comes from that select group of refs. (Top euro leagues also keep a standby assistant in the stadium).