properly generate 'if's with no 'else'