How to load `CuArray` depends on available devices?

Say I have a package ExamplePackage, and it will use CuArray if we have a usable GPU device, but it will just use CPU if we don’t.

Then how do I add CuArray as my dependency with Pkg3?