Checking device has new Storage features setValue and getValue


I am trying to use the new Storage module available in release 2.4 of CIQ. Since I am using the application across a range of devices I need to check if the feature is available.

If I use

if (Toybox.Application has :Storage)

then in the simulator it not only returns 'true' for 2.4 SDK but also for 2.3

if I use

if (Toybox.Application.Storage has :setValue)

Then it seems to have the correct result in the simulator but actually crashes a device still only supporting 2.3 SDK for example a Descent Mk1

What is the correct way to test if the new Storage features are available and can be used ?

Thanks