Handle jagged array when checking for empty text