Optionally passing an IO object to a pebble