has_cookie method
Implementation
Future<bool> has_cookie(String domain, String cookie) async {
final cookie_func = (await (await page).cookies);
final cookies = await cookie_func(urls: [domain]);
return cookies.any((element) => element.name == cookie);
}