When checking buffs, unless you really need to know rank, the name itself may not show it, so don't use it. Also, checking BuffsPopulated is useful. And finally, try to use the If TLO so you always end up with a boolean for sure on your evel.
E.g., try:
boastfulif=${If[${Target.BuffsPopulated} && !${Target.Buff[Boastful Bellow].ID},1,0]}
htw