submodules: add helper to determine if a submodule is populated