protected function determineDepth( $node, $nesting = 0 )
	{
		// Traverse back up the ancestry chain and add to the nesting level count
		while ( $parent = $node->parent()->first() )
		{
			$nesting = $nesting + 1;

			$node = $parent;
		}

		return [$node, $nesting];
	}
protected function determineDepth( $node, $nesting = 0 )
	{
		// Traverse back up the ancestry chain and add to the nesting level count
		while ( $parent = $node->parent()->first() )
		{
			$nesting = $nesting + 1;

			$node = $parent;
		}

		return [$node, $nesting];
	}
protected function determineDepth ( $ node , $ nesting = 0 ) { // Traverse back up the ancestry chain and add to the nesting level count while ( $ parent = $ node -> parent ( ) -> first ( ) ) { $ nesting = $ nesting + 1 ; $ node = $ parent ; } return [ $ node , $ nesting ] ; }
Return an array with the last node we could reach and its nesting level

@param   Baum\Node $node
@param   integer $nesting
@return  array
Return an array with the last node we could reach and its nesting level