check_packages_installed function

Check whether package(s) are installed