code: public boolean isTagPresent(String tagName) {
  
          boolean tagPresent = false;
  
          if (mReadMethod != null) {
              tagPresent = mReadMethod.isTagPresent(tagName);
          }
          if (!tagPresent && mWriteMethod != null) {
              tagPresent = mWriteMethod.isTagPresent(tagName);
          }
  
          return tagPresent;
      }
docs: Checks to see if the specified tag exists