public function checkIfSemaphoreIsLocked($id, string $section): int
    {
        $key = $this->getSemaphoreKey($id, $section);

        if (!$this->cache->has($key, ['semaphore', $section])) {
            return 0;
        }

        return (int)$this->cache->get($key, ['semaphore', $section]);
    }