Don't you want a "not" (!) here?  Don't you mean you want to set these things if the values are NOT blank?