Adding the missing check to verify package is installed