Hello, my script converts columns in a row from a text file into an array. The problem starts if there is some extra enter characters at (in general) the end of text document. The enter chars are causing empty string error but I do not know how to check if an array has no elements.
I thought this may work first;
if (columns.length!=0) do_something
Bu later I realized it cannot check that because there is no  element either. My code continues on condition “if array is not empty”. I appreciate any opinions.