If you are going to merge layers in an Illustrator or Photoshop file on import into AE, make sure the visibility for all the layers are on before you save the file in PS or AI. Layers that are not visible will be ignored when merging.
If you import as a composition, then non-visible layers will import with their visibility icon turned off.