check that cell is defined and length is greater than zero