I don’t see why the var is needed here, why not explicitly return the result from each branch?