SwiftPM show-dependencies without fetching dependencies

Hi,

Currently, swift package manager mutates states of project/dependency. For example,

If dependencies are not fetched, and resolved, executing following command would download the dependencies and resolve them.

swift package show-dependencies

Is there a way, I can identify if the dependencies are resolved and fetched for current project?

I'm looking to perform swift package show-dependencies command, only and only if the packages are fetched and resolved.

Current naive workaround is,

If .build directory is not empty, and Package.resolved exists. Perform the show-dependencies action.

Another question, I have is that if, Package.resolved exists - does swift package manager guarantee, that it will fetch mentioned dependency version, and ultimately producing the same dependency graph?