Trivial: Use more pythonic ternary operator