User ternary conditional instead of if/else