Given that HealthKit is currently only available on iPhone devices, not iPads or iPods, it is best to check usability before accessing HealthKit code: