Changed the way to obtain a "collection" based on the existence of the "id_xxxx" (child_attr) column