def licenses_mapper(lic, lics):
    """
    Return a `declared_licenses` list based on the `lic` license and
    `lics` licenses values found in a package.
    """
    declared_licenses = []
    if lic:
        declared_licenses.append(str(license).strip())
    if lics:
        for lic in lics:
            lic = lic.strip()
            if lic:
                declared_licenses.append(lic)
    return declared_licenses