check for empty sub-array