I think it is possible for mktg_urls to be None, and the previous if should be put back.