I would say it is neater to use e.g. ```stashval = val and val.startswith(STASHC)```

**This applies to lots of similar code throughout this file.**