Checking for userAgent