Why repeat this in each branch of the conditional?