added an NSAssert snippet which is safe for blocks