To be clearer, if you reach this line, that means message must be an object, because if that were not the case, the if statement would have exploded.  Maybe this wants to be hoisted above the if?