Hm, I thought that as well. I think in this case, the closure is null. So you could check for null. But I would leave it as it is. At least the implementation does not suggest that the closure is optional, the rest is handled by executeInContext.