nit: space after `if` (it's a keyword; the current formatting makes it look like a method call