AudioUnitPluginWindowCocoa::createView() code

Is the if statement right? (The first and last conditionals are the same)

       #if JUCE_MAC
        if (AudioUnitGetPropertyInfo (plugin.audioUnit, kAudioUnitProperty_CocoaUI, kAudioUnitScope_Global,
                                      0, &dataSize, &isWritable) == noErr
            && dataSize != 0
            && AudioUnitGetPropertyInfo (plugin.audioUnit, kAudioUnitProperty_CocoaUI, kAudioUnitScope_Global,
                                         0, &dataSize, &isWritable) == noErr)
            {

Rail

I would guess the intended pattern is : dataSize is first zero, the first call to AudioUnitGetPropertyInfo determines whether the property can be retrieved at all and the second call does the actual property getting if dataSize was changed to non-zero.