title: Checking if property is set in class
body: <p>If a class constructor sets a property of that class, is it recommended to still check if that property is set in other methods? The code:</p>
  
  <pre><code>class A {
  
      public $property;
  
      public function __construct($value) {
          $this-&gt;property = $value;
      }
  
      public function doSomething() {
  
          if(isset($this-&gt;property)) {
              //actual code here
              //...but is this isset-check necessary?
          }
          else { return false; }
      }
  } 
  </code></pre>
  
  <p>I'm just used to check if vars are set, just wondering if there are any concerns leaving it out. Thanks!</p>