PCG prevent spline creation

Hi.
I sample a few points on walls that i use to spawn linear splines.
Is there a way to prevent the spline creation if the spline is going to intersect with another wall?