def isPrivate(urlPath, repos):
    """Check if a URL is a private URL

    >>> isPrivate('/downloads/me/', None)
    True
    >>> isPrivate('/downloads/me/', [])
    False
    >>> isPrivate('/downloads/me/', ['me'])
    True
    >>> isPrivate('/repos/me/', ['me'])
    True
    >>> isPrivate('/downloads/me/', ['unknown'])
    False
    >>> isPrivate('/somewhere/me/', ['me'])
    False
    """
    if repos is None:
        return True
    for repo in repos:
        if not repo:
            continue
        api_repo = '/repos/%s/' % (repo,)
        dl_repo = '/downloads/%s/' % (repo,)
        if api_repo in urlPath or dl_repo in urlPath:
            return True
    return False
