private function nest($value, $path)
    {
        if ($path) {
            $elements = explode('/', $path);

            foreach (array_reverse($elements) as $element) {
                $value = array($element => $value);
            }
        }

        return $value;
    }