adding support for hasData to elements that are generated through getObjects2