src/Payloads/RawPayload.php
public function setIfNotNull($key, $value)
    {
        if (is_null($value)) {
            return $this;
        }

        return $this->set($key, $value);
    }
public function setIfNotNull($key, $value)
    {
        if (is_null($value)) {
            return $this;
        }

        return $this->set($key, $value);
    }
public function setIfNotNull ( $ key , $ value ) { if ( is_null ( $ value ) ) { return $ this ; } return $ this -> set ( $ key , $ value ) ; }
Set a value if it's not null.

@param string $key
@param mixed $value
@return $this
Set a value if it s not null .