private function makeLink($args)
    {
        if (!isset($args['href'])) {
            Core::i()->log->warning('Unable to add stylesheet, no href attribute.');
            return false;
        }
        if (!isset($args['rel'])) {
            $args['rel'] = 'stylesheet';
        }
        if (!isset($args['type']) && $args['rel'] == 'stylesheet') {
            $args['type'] = 'text/css';
        }

        $link = '<link';
        foreach ($args as $key => $value) {
            $link .= ' ' . $key . '="' . $value . '"';
        }
        $link .= ' />';
        return $link;
    }