check if url is defined to generate mobile data

``if url:`` would be enough here

Can you add a comment please ? When a media can have an empty or missing url ?