return empty array on n undefined