Used ternary notation for conciseness