nit: space between `if` and `(`, always use `{...}` to keep consistent with coding standards