Fix parse error with declarations and statements inside of a conditional statement