Is there an easier way to understand negation of a function result?
<p>I recently had to write a piece of code where I used the following; but it was very confusing for me and took me longer than I should</p>

<p>I keep getting lost by the negation and false turning into true and then back maybe. I end up solving these problems by trial and error.</p>

<p>Here is the code for getting rid of empty elements. NB, perhaps there are better code but I'm interested in knowing how to think this through</p>

<pre><code>array_filter($array, "eliminate");

function eliminate($v)
{
   return !(empty($v));
}
</code></pre>
