code style

add spaces before all conditional parentheses to more readily distinguish them from function invocations