<code> return !queue || queue->node_count == 0; </code>
The construct <code>cond ? true : false</code> is always fatuous when cond itself is actually a comparison.