Fixed a parenthesis error

I forgot a parenthesis at the end of my if statement, which caused the code to fail.