property exists
<p>This code: </p>

<pre><code> $_post = &amp;get_post($post-&gt;ID); 
 $classname = ($_post-&gt;iconsize[0] &lt;= 128 ? 'small' : '') . 'attachment'; 
</code></pre>

<p>sometimes produces this error:</p>

<pre><code>[Sun Apr 15 08:51:35 2012] [error] [client 180.76.5.150] PHP Notice:  Undefined property: stdClass::$iconsize in /srv/www/virtual/myblog.com/htdocs/wp-content/themes/mimbo/attachment.php on line 8
</code></pre>

<p>I would like to modify the line to add the property_exists check on the property and default to '' if it doesn't exist but am a little unfamiliar with the syntax dealing with properties.  How would the line look?     </p>
