fixed the check for malformed if statements. It shouldn't get triggered if a variable doesn't exists.
Changed paths: