This is too much logic in one statement. The ternary operator doesn't really save space, but does add density. That's not a good trade-off, imo.