Check if package is installed before loading.