nit: space after 'if'