diff --git a/lib/fuckhtml.php b/lib/fuckhtml.php
index 24c0bf3..9018627 100644
--- a/lib/fuckhtml.php
+++ b/lib/fuckhtml.php
@@ -13,7 +13,7 @@ class fuckhtml{
if(is_array($html)){
- if(!isset($html["innerHTML"])){
+ if(!array_key_exists("innerHTML", $html)){
throw new Exception("(load) Supplied array doesn't contain an innerHTML index");
}
@@ -339,7 +339,7 @@ class fuckhtml{
if(is_array($html)){
- if(!isset($html["innerHTML"])){
+ if(!array_key_exists("innerHTML", $html)){
throw new Exception("(getTextContent) Supplied array doesn't contain an innerHTML index");
}