isError() === false; } public function isError(): bool { return $this instanceof ServiceResultErrorContract === true; } }