title: Cannot use isset() on the result of a function call - Laravel
body: <p>I have a custom helper and a config, I can get the value but when I try the isset() it's not working and it shows me like this</p>
  
  <p><a href="https://i.stack.imgur.com/RjRxr.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/RjRxr.png" alt="enter image description here"></a></p>
  
  <p>and this is the content of customer helper: <code>app\helper\LmsHelper.php</code></p>
  
  <pre><code>class LmsHelper
  {   
      private static $host;
      private static $api_key;
      private static $api_version;
      private static $use_ssl;
      private static $debug;
      private static $port;
  
      public function __construct() {
          self::$host         = Config::get('lms.host');
          self::$api_key      = Config::get('lms.api_key');
          self::$api_version  = Config::get('lms.api_version');
          self::$use_ssl      = Config::get('lms.use_ssl');
          self::$debug        = isset(Config::get('lms.debug')) ? Config::get('lms.debug') : false;
  
  
          if (isset(Config::get('lms.port'))) {
              self::$port = Config::get('lms.port');
          } else {
              self::$port = self::$use_ssl ? 443 : 80;
          }
      }
  }
  </code></pre>
  
  <p>and <code>app\config\lms.php</code></p>
  
  <pre><code>&lt;?php
  
  return array( 
      'host' =&gt; 'www.themartialarts.university', 
      'api_key' =&gt; '6027-178512-e272b9afac4763199fa8d79e4bc0dcb39a378658', 
      'api_version' =&gt; '1', 
      'use_ssl' =&gt; true,
  );
  </code></pre>
  
  <p>any idea what other method I can do? cause this is from normal PHP and I convert it into Laravel.</p>