title: How is it possible to check if any of the properties of an object is empty?
body: <p>I would like to check, if any of the properties of an object is empty, without manually checking each one. This is how I do it now:</p>
  <pre><code>class MyClass {
      public $a;
      public $b;
      public $c;
  }
  </code></pre>
  <p>Then:</p>
  <pre><code>$item = new MyClass();
  
  // ...
  $item-&gt;a = 10;
  $item-&gt;b = 20;
  // ...
  
  // TODO:
  $hasEmpty = empty($item-&gt;a) || empty($item-&gt;b) || empty($item-&gt;c);
  </code></pre>
  <p>How is it possible without manually checking each property?</p>