Hi Mathieu,
The Layer class does not have a IsVisible property. Based on my knowledge, the group layer visibility dependency is functionality written specifically into the Flex Viewer (rather than being a function of the API itself), therefore the best option is to use a core Flex technique to check the status of the checkbox for each individual layer rather than rely on the map.visibleLayers()