public function contains($type)
	{
		foreach($this->tokens as $token)
		{
			if($token->is($type))
			{
				return true;
			}
		}
		
		return false;
	}
public function contains($type)
	{
		foreach($this->tokens as $token)
		{
			if($token->is($type))
			{
				return true;
			}
		}
		
		return false;
	}
public function contains ( $ type ) { foreach ( $ this -> tokens as $ token ) { if ( $ token -> is ( $ type ) ) { return true ; } } return false ; }
Check if the sequence contains at least one token of the given type.

@param integer $type
@return boolean
Check if the sequence contains at least one token of the given type .