You could assign the expression directly here, no need for the ternary.