Check to see if list is only a single element in length, if so then close it properly.
Remove previous line so there's no clash. Whoops.
Changed from using counter to using index
Close the li properly whilst I work on other things.