Fixed added if statements

forgot to add in () around statement