if expression evaluation, subprocess error handling