code: public function __isset($propertyName)
      {
          $methodName = 'get'.$propertyName;
          if (method_exists($this, $methodName)) {
              return ($this->$methodName() !== null);
          } else {
              return false;
          }
      }
docs: Checks if the property is not null
  @param type $propertyName