/Engine/Source/Runtime/Engine/Classes/EdGraph/EdGraphPin.h
Returns true if there are entries in the pin's LinkedTo array, or if it has SubPins, one of their SubPins arrays:
bool HasAnyConnections() const