public function contains($name){
		foreach($this->segments as $segment){
			if($segment->getName() == $name) return true;
		}
		return false;
	}
public function contains($name){
		foreach($this->segments as $segment){
			if($segment->getName() == $name) return true;
		}
		return false;
	}
public function contains ( $ name ) { foreach ( $ this -> segments as $ segment ) { if ( $ segment -> getName ( ) == $ name ) return true ; } return false ; }
Return true if this document contains a segment with the given name
@param string $name Name of the segment
@return boolean
Return true if this document contains a segment with the given name