Check brackets sequence

Given a sequence of brackets, write a method that checks if it has the same number of opening and closing brackets.
Expected input and output
CheckBracketsSequence("((()))") → true CheckBracketsSequence("()(())(") → false CheckBracketsSequence(")") → false
using System;

namespace CSharpExercises.Exercises.Strings
{
    class CheckBracketsSequenceTask
    {
        static bool CheckBracketsSequence(string sequence)
        {
            int check = 0;

            for (int i = 0; i < sequence.Length; i++)
            {
                check = sequence[i] == '(' ? ++check : --check;
            }

            return check == 0;
        }

        static void Main(string[] args)
        {
            Console.WriteLine(CheckBracketsSequence("((()()()))"));           // True
            Console.WriteLine(CheckBracketsSequence(")"));                    // False
            Console.WriteLine(CheckBracketsSequence(")(())("));               // True
            Console.WriteLine(CheckBracketsSequence("()())()"));              // False
            Console.WriteLine(CheckBracketsSequence("((()(((()())))())())")); // True
        }
    }
}