don't return undef for empty array