diff --git a/lib/fuckhtml.php b/lib/fuckhtml.php
index b05c5b2..24c0bf3 100644
--- a/lib/fuckhtml.php
+++ b/lib/fuckhtml.php
@@ -554,7 +554,7 @@ class fuckhtml{
case "\"":
case "'":
if(
- $i > 1 && // only check if a quote could be there
+ $i !== 0 && // only check if a quote could be there
(
(
$json[$i - 1] === "\\" &&