javascript style truthiness in c#