make data-visible and data-hidden support arrays better

Treat 0 length array as a false value.