Check for existence of target path with minimal depth