By default, checked
echoes. If you set the (currently empty) third parameter to false
, it should work as expected. Change the line to:
$$sku = isset( $instance[$sku] ) ? checked( (bool) $instance[$sku], true, false ) : false;
More info: http://codex.wordpress.org/Function_Reference/checked