code: public boolean hasChild(String name) {
  	for (ParseTreeNode child : children) {
  	    if (child.getName().equals(name)) {
  		return true;
  	    }
  	}
  	return false;
      }
docs: This method look for a child with a given name.
  
  @param name
  is the name to look for.
  @return true is returned in case a child with the specified name exists.