nit: a space after "if"