How can I know USB is connected or not ?(Seeeduino XIAO)

if (! Serial)
{
}
Seeeduino XIAO could not determine if there is a USB connection using the above syntax.
Don’t know how to determine if a USB is connected?