Fixes #4821: Add a bundle to check if a package is installed (implementation + test case)