Adding check for collection so they display nicely in the gallery, insteda of looking like a default document