protected function beforeDelete()
 {
     if (!parent::beforeDelete()) {
         return false;
     }
     if ($this->hasReadPermissionsOptimization()) {
         AllPermissionsOptimizationUtil::securableItemBeingDeleted($this);
     }
     return true;
 }