diff --git a/path_breadcrumbs.module b/path_breadcrumbs.module
index 0e97b1f..335e4cb 100644
--- a/path_breadcrumbs.module
+++ b/path_breadcrumbs.module
@@ -550,7 +550,9 @@ function path_breadcrumbs_load_by_path($path) {
 
   if (empty($data[$pattern_needle])) {
 
-    if ($cache = cache_get(__FUNCTION__, PATH_BREADCRUMBS_CACHE_STORAGE)) {
+    $cache = cache_get(__FUNCTION__, PATH_BREADCRUMBS_CACHE_STORAGE);
+    // Ensure the cache object has data.
+    if ($cache->data) {
       $data = $cache->data;
     }
     else {
