From 2b7f3da8f0f46500ff78e9f4aedc829cd71ed8b4 Mon Sep 17 00:00:00 2001
From: Mark Carver <mark.carver@me.com>
Date: Thu, 15 Sep 2016 15:54:02 -0500
Subject: [PATCH] Issue #2800957 by markcarver: Element::isPropertyEmpty logic
 is backwards

---
 src/Utility/Element.php | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/Utility/Element.php b/src/Utility/Element.php
index 566960e..fd351cf 100644
--- a/src/Utility/Element.php
+++ b/src/Utility/Element.php
@@ -402,7 +402,7 @@ class Element extends DrupalAttributes {
    *   Whether the given property on the element is empty.
    */
   public function isPropertyEmpty($name) {
-    return $this->hasProperty($name) && !empty($this->getProperty($name));
+    return $this->hasProperty($name) && empty($this->getProperty($name));
   }
 
   /**
-- 
2.8.3

