fix logic in if parser

There was an issue dealing with multiple parenthesized expressions.