QuickBooks/QBXML/Schema/Object.php
public function exists($path, $case_doesnt_matter = true, $is_end_element = false)
	{
		$ordered_paths = $this->_reorderPathsPaths();
		
		if (in_array($path, $ordered_paths))
		{
			return true;
		}
		else if ($case_doesnt_matter)
		{
			foreach ($ordered_paths as $ordered_path)
			{
				if (strtolower($path) == strtolower($ordered_path))
				{
					return true;
				}
			}
		}
		
		return false;
	}
public function exists($path, $case_doesnt_matter = true, $is_end_element = false)
	{
		$ordered_paths = $this->_reorderPathsPaths();
		
		if (in_array($path, $ordered_paths))
		{
			return true;
		}
		else if ($case_doesnt_matter)
		{
			foreach ($ordered_paths as $ordered_path)
			{
				if (strtolower($path) == strtolower($ordered_path))
				{
					return true;
				}
			}
		}
		
		return false;
	}
Tell whether or not an element exists

@param string $path
@return boolean