ultimate check for nil from wil shipley
if ([pushedCompleteTransaction.manuallySetTransactionDate isKindOfClass:[NSNull class]]
|| ([pushedCompleteTransaction.manuallySetTransactionDate respondsToSelector:@selector(length)]
&& ![pushedCompleteTransaction.manuallySetTransactionDate respondsToSelector:@selector(count)]
&& [(NSData *)pushedCompleteTransaction.manuallySetTransactionDate length] == 0)
|| ([pushedCompleteTransaction.manuallySetTransactionDate respondsToSelector:@selector(count)]
)){
formattedDate = [dateFormatterIn dateFromString:pushedTransaction.timeStamp];
NSLog(@"using original timestamp");
NSLog(@"using %@ as date", formattedDate);
}