isBot function
Check if a browser is a bot/crawler
Implementation
bool isBot(Browser? browser) {
if (browser == null) return false;
return browser.type == 'crawler' ||
browser.type == 'fetcher' ||
browser.type == 'cli' ||
browser.type == 'library';
}