public function removePolicy($sec, $ptype, array $rule)
    {
        foreach ($this->model[$sec][$ptype]->policy as $i => $r) {
            if (empty(array_diff($rule, $r))) {
                array_splice($this->model[$sec][$ptype]->policy, $i, 1);

                return true;
            }
        }

        return false;
    }