small amount of cleanup - only need to reference $can_continue once if we put it in the right spot.