in reply to how can i check an array element as empty or not
Then perhaps it only *appears* empty (e.g. it contains a space or a newline).