This should be inlined to line 25 since it only needs to be calculated on the one if branch.