Inconsistent whitespace after `if`. Here you use `if(` and later you use `if (`.