Shorten with ternary operator.