diff --git a/core/lib/Drupal/Core/Cache/DatabaseBackend.php b/core/lib/Drupal/Core/Cache/DatabaseBackend.php
index a12ed13..583bf6f 100644
--- a/core/lib/Drupal/Core/Cache/DatabaseBackend.php
+++ b/core/lib/Drupal/Core/Cache/DatabaseBackend.php
@@ -96,10 +96,6 @@ class DatabaseBackend implements CacheBackendInterface {
    *   valid item to load.
    */
   protected function prepareItem($cache) {
-    if (!isset($cache->data)) {
-      return FALSE;
-    }
-
     // The cache data is invalid if any of its tags have been cleared since.
     if ($cache->tags) {
       $cache->tags = explode(' ', $cache->tags);
diff --git a/core/lib/Drupal/Core/Cache/MemoryBackend.php b/core/lib/Drupal/Core/Cache/MemoryBackend.php
index 837df0e..3f17b72 100644
--- a/core/lib/Drupal/Core/Cache/MemoryBackend.php
+++ b/core/lib/Drupal/Core/Cache/MemoryBackend.php
@@ -83,10 +83,6 @@ class MemoryBackend implements CacheBackendInterface {
    *   valid item to load.
    */
   protected function prepareItem($cache) {
-    if (!isset($cache->data)) {
-      return FALSE;
-    }
-
     // The cache data is invalid if any of its tags have been cleared since.
     if (count($cache->tags) && $this->hasInvalidatedTags($cache)) {
       return FALSE;
diff --git a/core/modules/system/lib/Drupal/system/Tests/Cache/CacheTestBase.php b/core/modules/system/lib/Drupal/system/Tests/Cache/CacheTestBase.php
index 25ab106..178fd70 100644
--- a/core/modules/system/lib/Drupal/system/Tests/Cache/CacheTestBase.php
+++ b/core/modules/system/lib/Drupal/system/Tests/Cache/CacheTestBase.php
@@ -37,7 +37,7 @@
 
     $cached = cache($bin)->get($cid);
 
-    return isset($cached->data) && $cached->data == $var;
+    return $cached && $cached->data == $var;
   }
 
   /**
diff --git a/core/modules/system/lib/Drupal/system/Tests/Cache/GenericCacheBackendUnitTestBase.php b/core/modules/system/lib/Drupal/system/Tests/Cache/GenericCacheBackendUnitTestBase.php
index 95805d7..6394375 100644
--- a/core/modules/system/lib/Drupal/system/Tests/Cache/GenericCacheBackendUnitTestBase.php
+++ b/core/modules/system/lib/Drupal/system/Tests/Cache/GenericCacheBackendUnitTestBase.php
@@ -182,12 +182,14 @@
     $backend = $this->getCacheBackend();
 
     $variables = array(
-      'test1' => 1,
-      'test2' => '0',
-      'test3' => '',
-      'test4' => 12.64,
-      'test5' => false,
-      'test6' => array(1,2,3),
+      'test1' => 0,
+      'test2' => 1,
+      'test3' => FALSE,
+      'test4' => NULL,
+      'test5' => '0',
+      'test6' => '',
+      'test7' => 12.64,
+      'test8' => array(1, 2, 3),
     );
 
     // Create cache entries.
@@ -367,8 +369,7 @@
    *   TRUE on pass, FALSE on fail.
    */
   protected function checkCacheExists($cid, $bin = null) {
-    $cached = $this->getCacheBackend($bin)->get($cid);
-    return isset($cached->data);
+    return (bool) $this->getCacheBackend($bin)->get($cid);
   }
 
   /**
