Should this check be using `g.last` for the comparison?