How to test if package is installed

basically, something like this in .juliarc:

if (SomePackage is installed) && (VERSION >= v"0.6-")
   eval(quote
           import SomePackage
           SomePackage.dostuff(...)
        end)
end

ie using a package but not causing an error if it is not available.