Remove trailing whitespace
Replace 'a = has(a)? a: b' with 'a = or(a,b)'