diff --git a/src/ParentNode.php b/src/ParentNode.php
index <HASH>..<HASH> 100644
--- a/src/ParentNode.php
+++ b/src/ParentNode.php
@@ -385,7 +385,8 @@ abstract class ParentNode extends Node implements ParentNodeInterface {
     $children = [];
     $child = $this->head;
     while ($child) {
-      if (($key = array_search($child, $properties, TRUE) !== FALSE)) {
+      $key = array_search($child, $properties, TRUE);
+      if ($key !== FALSE) {
         $children[$key] = clone $child;
       }
       else {
Fixed bad parentheses placement in ParentNode::__clone() which was breaking a bunch of stuff.