I think you meant `self.unit.bases == []` on all of these. Though it would be just as sufficient to use `if self.unit.bases and self.unit.scale != 1.`