Since this function is internal to the closure and always called with just one parameter maybe this check is unnecessary?