Method collection->getElem() returns value of the element with index index (1-based).
collection->getElem() will return FALSE if such element doesn't exist; NULL if element is NULL; string if element is column of a string datatype or number if element is numeric field.
collection->getElem() will return FALSE in case of error.