UEdGraphPin::HasAnyConnections

Returns true if there are entries in the pin's LinkedTo array, or if it has SubPins, one of their SubPins arrays: