Doc comments - determine and store one-liner state correctly
Use reset() instead of current() to fetch the first value of an array