Checks if parentheses are even