diff --git a/include/SearchPage.php b/include/SearchPage.php
index b823aef..f7761c9 100644
--- a/include/SearchPage.php
+++ b/include/SearchPage.php
@@ -103,7 +103,9 @@ class SearchPage extends Page {
         $sanitizedItems = array();
         foreach($items as $item) {
             $mustMatch = $item->matches($mustMatchArray);
-
+            if($mustMatch) {
+                $sanitizedItems[] = array($item, $mustMatch);
+            }
 
             // $mustMatchCheck = array();
             // foreach($mustMatchArray as $mustMatchTerm) {
@@ -118,10 +120,8 @@ class SearchPage extends Page {
             // if(in_array(False, $mustMatchCheck, True) === False) {
             //     $sanitizedItems[] = array($item, $mustMatch);
             // }
+
             
-            if($mustMatch) {
-                $sanitizedItems[] = array($item, $mustMatch);
-            }
 
             // $mustExcludeCheck = array();
             // foreach($mustExcludeArray as $mustExcludeTerm) {
@@ -150,7 +150,7 @@ class SearchPage extends Page {
 
         foreach($sanitizedItems as $sanitizedItem) {
             print('DEBUG $sanitizedItem: ');
-            var_dump($sanitizedItem;
+            var_dump($sanitizedItem);
             print('<br><br>');
         }