nit: add braces for single statement if