def is_resource(url):
    """
    :param url: url to check;
    :return: return boolean;

    This function checks if a url is a downloadable resource. This is defined by the list of resources;
    """
    if url:
            resources = ['mod/resource', 'mod/assign', 'pluginfile']

            for resource in resources:
                if resource in url:
                    return True