Using ternary operators and Boolean || or &&