Implemented first version of isIri method