I don't quite understand why you're doing this. If you just add ```text-term="anonymous"``` as the last condition under substitute you can safe yourself all these conditionals.