Fix malformed if expression

was broken