oppc: simplify ternary conditionals