private static function ensureNonEmptyData(array $data) { if (count($data) === 0) { throw new TelegramException('Data is empty!'); } }