protected function filterArrayWithGlobalChain(array $data)
    {
        if ($this->globalChain === null) {
            return $data;
        }

        foreach ($data as $key => $value) {
            $data = $this->filterValueWithGlobalChain($value, $key, $data);
        }

        return array_filter($data);
    }