The Apple convention is to test `value`, not `error`. See [Handling Error Objects Returned From Methods](https://developer.apple.com/library/mac/documentation/cocoa/conceptual/ErrorHandlingCocoa/CreateCustomizeNSError/CreateCustomizeNSError.html#//apple_ref/doc/uid/TP40001806-CH204-SW1), specifically the "**Important**" box.