This line is duplicated in both branches of the conditional. Can it be moved after?