Hide the curves only when "on" is true, otherwise a showCurve(..., false) hides all curves.

Uwe