Implement IsId method for document to check for validity of document identifier.