    public static function isActive($mod){
        $json = Options::v('modules');
        $mods = json_decode($json, true);
        //print_r($mods);
        if (!is_array($mods) || $mods == "") {
            $mods = array();
        }

        if(in_array($mod, $mods)){
            return true;
        }else{
            return false;
        }
    }
