the effect I think was intended due to operator precedence: || binds tighter than ?:. Rewrote it without :?.