(bugfix) Moving ternary operation to one line