CCK field value count is never less than 1 I have got a CCK field set up so that unlimited values can be entered upon node creation (number of values: unlimited).

When I try to print values in a node with the following code

if ($node-&gt;field_tip != NULL) {
  foreach ((array)$node-&gt;field_tip as $tip) {
   print "&lt;div class='tip'&gt;" . $tip['view'] ."&lt;/div&gt;";
  }
}


or I print count($node-&gt;field_tip), the value is never less than 1, and &lt;div class='tip'&gt;&lt;/div&gt; is always displayed, even if there aren't values entered in that field.
As far as CCK is concerned, there is still a value, it just happens to be blank (most likely an empty string, depending on what type of field you're using). If you modify your code to check the raw value, you should only see output when there is an actual value:

if ($node-&gt;field_tip != NULL) {
  foreach ((array)$node-&gt;field_tip as $tip) {
    if (!empty($tip['value'])) {
      print "&lt;div class='tip'&gt;" . $tip['view'] ."&lt;/div&gt;";
    }
  }
}