public function canDeleteQueue($queue_id)
{
if ($this->getCurrentTicketCount($queue_id)) {
return false;
}
$queue = $this->readModel($queue_id);
foreach ($queue->getDependentQueueIds() as $dep_id) {
if ($this->getCurrentTicketCount($dep_id)) {
return false;
}
}
return true;
}