Spacing looks odd here. There's not a blank line after the if statement, but there is before the closing parentheses.