Use ternary operator to get a one-liner