diff --git a/lib/Record.php b/lib/Record.php
index <HASH>..<HASH> 100644
--- a/lib/Record.php
+++ b/lib/Record.php
@@ -21,12 +21,13 @@ class Record extends Resource
      */
     public function offsetExists($index)
     {
-        if (!$exists = parent::offsetExists($index)) {
-            if ($this->links && (isset($this->links[$index]['url']) || $index === '$links')) {
+        if (!parent::offsetExists($index) || parent::offsetGet($index) === null) {
+            if (isset($this->links[$index]['url']) || $index === '$links') {
                 return true;
             }
+            return false;
         }
-        return $exists;
+        return true;
     }
 
     /**
Fix offsetExists for isset