i wonder if we should just check for ``isset($depth)`` here