I just noticed this, why aren't you closing the tag out here? You should be. At which point you'll be able to get rid of the `is_last_text` stuff.