When using &drupal_static to cache variables how do I store an empty return result of null or false?
drupal_static()'s default value is null. So instead of doing this

&lt;?php
$third_party_info = &amp;drupal_static(__FUNCTION__);
if (!isset($third_party_info) &amp;&amp; is_null($third_party_info)) {
?&gt;


Try this

&lt;?php
$third_party_info = &amp;drupal_static(__FUNCTION__);
if (is_null($third_party_info)) {
?&gt;