Fixed loop.last to not consume the entire iterator to determine if this is