Need to check the return value here - check_for_package just returns a boolean, it doesn't stop execution if false.