Use and..or as a ternary operator rather than a dictionary