Proper comparison of userAgent string for no user input