public static function extract(array $data, string $path)
    {
        if ('' === $path) {
            return $data;
        }

        $steps = explode('.', $path);
        $actual = $data;
        foreach ($steps as $step) {
            if (!array_key_exists($step, $actual)) {
                return null;
            }

            $actual = $actual[$step];
        }

        return $actual;
    }