def _isSet(theme, keys):
    """
    Given a theme dict, recursively check that all the keys are populated
    and that the associated value is truthy
    """
    obj = theme
    for key in keys:
        if not obj or key not in obj:
            return False
        obj = obj[key]
    return bool(obj)