nit: `if(` => `if (` to match the rest. 

(sorry I didn't notice this before)