$position[0] == @list ? $done = 1 : $next = 1;