Move check to canRenderMediaGallery() + doc