New canAttach method for checking if connection can be attached to a port