Convert to ternary operators. #857