D'oh. Stupid curly braces. 

So should this be:

```objective-c

    if (error)
    {
        AT_DEREF(anError, error);
        anObject = nil;
        return NO;
    }
    
    AT_DEREF(anObject, value);
    return YES;
```