Change all uses of __is_last.