public function searchMenu($name, $menu = false)
    {
        //parse the type based on the config name if this is the top-level item
        if ($menu === false) {
            $this->parseType($name);
        }

        $config = false;
        $menu   = $menu ? $menu : $this->options['menu'];

        //iterate over all the items in the menu array
        foreach ($menu as $key => $item) {
            //if the item is a string, try to find the config file
            if (is_string($item) && $item === $name) {
                $config = $this->fetchConfigFile($name);
            }
            //if the item is an array, recursively run this method on it
            elseif (is_array($item)) {
                $config = $this->searchMenu($name, $item);
            }

            //if the config var was set, break the loop
            if (is_array($config)) {
                break;
            }
        }

        return $config;
    }