Many of these comparisons could be simplified to not assert `tgt == ""` or `tgt != ""`, but I wanted to keep everything functionally equivalent with what was there before.