You shouldn't add brackets to the if condition. FIx this for the rest of the file please.