Simplify handling of boolean args in rapi