nit: use curly braces even for one-line if-blocks