only add the filter if there are guids to filter against