OPAL-2221 - made sure the attribute array is not null and attribute has namesapces