title: How to know the name of the fields of a list that is empty?
body: <p>In a Sharepoint there is a SPList that I should check if a name of field exist. (If exist I add content, if not exist I do something else)</p>
  
  <p>Now I'm doing that:</p>
  
  <pre><code>SPListItemCollection listItems = spList.GetItems();
  SPFieldCollection spFieldCollection =listItems.Fields;
  foreach (SPField field in spFieldCollection)
   {
       String name = field.Title;
  
       if (name == "nameField") {
           return true; // Exist
       }
   }
  </code></pre>
  
  <p>that works ok, except if the list is empty. How can I check if a name of the field exist before add content to the list?</p>