code: public boolean check(int id) {
      for (Tag tag: getTags()) {
        if (tag.getID() == id)
  	return true;
      }
      return false;
    }
docs: Returns whether the ID is valid.
  
  @param id		the ID to check
  @return		true if valid