I would probably remove this boolean and just check if the limit is > 0 instead.