protected function getSignatureIndex(array $context): int
    {
        $signatureIndex = 0;

        if (isset($context['signature_index']) && \is_int($context['signature_index'])) {
            $signatureIndex = $context['signature_index'];
        }

        return $signatureIndex;
    }