I think you want:

    if 'sdkVersion' in data and data['sdkVersion']:

Otherwise it will throw a `KeyError` if `sdkVersion` isn't present.