private function checkTableCanBeUsedForSegmentation($tableName) { if (!is_array($tableName) && !$this->getLogTable($tableName)) { throw new Exception("Table '{$tableName}' can't be used for segmentation"); } }