Fixed the missing parentheses at end of if statement