public function multidimensionalSearch($parents, $searched)
    {
        if (empty($searched) || empty($parents)) {
            return false;
        }

        foreach ($parents as $key => $value) {
            $exists = true;
            foreach ($searched as $skey => $svalue) {
                $exists = $exists && isset($parents[$key][$skey]) && $parents[$key][$skey] === $svalue;
            }

            if ($exists) {
                return true;
            }
        }

        return false;
    }