check_and_load_package function

Check if a package is installed and load it