I have a select form element and it accepts multiple items. 

When the form is submitted I'm adding the items into an array to then handle them then running through the array to perform an action on each item.

I'm coming across a problem when only one item is selected. 

The length of the array when one item is passed through is not 1 it's the number of characters in the item that is selected.

```
function processForm(formObject){
  var list = [];
  list = formObject.listElement;

  for (var i=0;i<list.length;i++) {
    Logger.log(list[i]);
  }
}

```

The above would log each item if more than one item is selected in the form. If only one is selected the length is the number of character in that one item. How can I resolve this so if only one item is selected we treat this as an array with one item?