private function HasLock($bundle, $module = '')
    {
        $sql = Access::SqlBuilder();
        $tblModLock = ModuleLock::Schema()->Table();
        
        $where = $sql->Equals($tblModLock->Field('Bundle'), $sql->Value($bundle))
                    ->And_($sql->Equals($tblModLock->Field('Module'), $sql->Value($module)))
                    ->And_($sql->Equals($tblModLock->Field('UserGroup'), $sql->Value($this->group->GetID())));
        
        return ModuleLock::Schema()->Count(false, $where) > 0;
    }