public function enable($list, $ignoreInvalid=false)
     {
        if (!is_array($list)) { $list = [ $list ]; }

        $result = [];

         // Search by $name and enable
         foreach ($list as &$name){
             $idx = $this->__find__($name);

             if ($idx < 0) {
                 if ($ignoreInvalid) continue;
                 throw new \Exception("Rules manager: invalid rule name '{$name}''");
             }
             $this->__rules__[$idx]->enabled = true;
             $result[] = $name;
         }

        $this->__cache__ = null;
        return $result;
    }