Fix typo.
Added a function to test whether a package has been activated or not.