code: def is_returning(self) -> bool:
          
          return self.orders and self.orders[0].ability.id is AbilityId.HARVEST_RETURN
docs: Checks if a unit is returning from mineral field / vespene geyser to deliver resources to townhall.