empty keyword



How do you test for empty keywords in a smart playlist? In some programming languages it would look like if x = “”
examples
I want to know if there is no plot, or no year, or no title, as some random examples:
<plot></plot>
<year></year>
<title><title>

My intention is to find these missing elements and correct them. I am writing error-finding-playlists for musicvideo nfo’s that are made by hand. There’s got to be a better way to find these empty elements than the brute force method I use now.

Thank you