We're at the last post when (length-1) > i, not length > i, because we're indexing from 0 but starting from 1