This can simply be `if not data['device_types']`