Good practices for intialising properties?
<p>HI,
I have a class property that is a list of strings, List.
Sometimes this property is null or if it has been set but the list is empty then count is 0.
However elsewhere in my code I need to check whether this property is set, so currently my code check whether it's null and count is 0 which seems messy. </p>

<pre><code>if(objectA.folders is null)
{
    if(objectA.folders.count == 0)
    {
      // do something
    }
}
</code></pre>

<p>Any recommendation on how this should be handled?
Maybe I should always initialise the property so that it's never null?
Appolgies if this is a silly question.</p>
