I like the readability. It won't be inefficient, there'll be so few in the arr.

BTW couldn't find a sensible CSS selector that omits attribute values that are either not-present or empty string.