For some reason there is always a spurious empty item in the array