Used ternary operator instead of "or" for constant definition