Check active sources instead of availability of some version of package.
This ensures the PPAs come back after they're disabled on ubuntu upgrade.