correcting iteration on lists of curves.
Check type of variable