Ternary instead of if/else