$(sel).css('opacity', 0) fix

You can't set i.e. opacity to 0 because `if value` will return false for 0.

Fixed by chaining `if value` to `if typeof value != "undefined"`.