public function __isset(string $name): bool
    {
        return in_array($name, static::getInstanceProperties()) && $this->$name !== null;
    }
public function __isset(string $name): bool
    {
        return in_array($name, static::getInstanceProperties()) && $this->$name !== null;
    }
public function __isset ( string $ name ) : bool { return in_array ( $ name , static :: getInstanceProperties ( ) ) && $ this -> $ name !== null ; }
Returns whether given property is set in DTO.

@param string $name Property name to check

@return boolean
Returns whether given property is set in DTO .