Re-arranged the check for a TCP transport