nit: Code invention is emit the braces in one line `if`.