You could use the ternary operator here.