PHP check IF non-empty, non-zero
<p>I get the width and height of image with getimagesize function, like below:</p>

<pre><code>list($width,$height) = getimagesize($source_pic);
</code></pre>

<p>How can I use IF condition to check that the getimagesize function executed without error and $width and $height got non-empty, non-zero values?</p>
