We have update it to use drupal static function and added comment. Panels sometimes call's it's content renders more than once.