[backends/rbcommon] Just use ternary