The code following this check is written specifically for bar-descriptor injection. That code is injecting into the "bar-descriptor" specifically. Why wouldn't you verify the target is bar-descriptor...?