Because all value nodes need the length attribute. I added the isset check  almost automatically to avoid notices, but probably should just validate that all values have a length value.