Avoid the need to defensively flatten tags array