Update media field to check for empty medias

The medias, what if they are empty?