diff --git a/src/Httpful/Handlers/XmlHandler.php b/src/Httpful/Handlers/XmlHandler.php index 39e9444..4b11659 100644 --- a/src/Httpful/Handlers/XmlHandler.php +++ b/src/Httpful/Handlers/XmlHandler.php @@ -39,7 +39,7 @@ public function parse($body) if (empty($body)) return null; $parsed = simplexml_load_string($body, null, $this->libxml_opts, $this->namespace); - if (!$parsed) + if ($parsed === false) throw new \Exception("Unable to parse response as XML"); return $parsed; }