The idea here is to eliminate all radius==0 spheres, unless there is only one sphere and its radius is 0.  This is explained in the comment. If the input file has a radius==0 sphere followed by a radius>0 sphere then this clear is needed to remove the radius==0 sphere before adding the radius>0 sphere.