verify passed idOrElem