Removed function getUniqueItems
Safety check DOMElement before getAttribute