Didn't realize this was inside a loop -- why not just reset it to `false` at the end of the loop? or rather, use an else block above? If the check on l#51 fails, `inside_tag` should be false, right?