private static function clearNonMatched($match_results){
    return array_filter($match_results, function($el){
      $keep = true;
      if($el === "" || (is_array($el) && empty($el))|| $el === null|| $el === array("")){
        $keep = false;
      }

      return $keep;
    });
  }
private static function clearNonMatched($match_results){
    return array_filter($match_results, function($el){
      $keep = true;
      if($el === "" || (is_array($el) && empty($el))|| $el === null|| $el === array("")){
        $keep = false;
      }

      return $keep;
    });
  }
private static function clearNonMatched ( $ match_results ) { return array_filter ( $ match_results , function ( $ el ) { $ keep = true ; if ( $ el === "" || ( is_array ( $ el ) && empty ( $ el ) ) || $ el === null || $ el === array ( "" ) ) { $ keep = false ; } return $ keep ; } ) ; }
Filter out all botched matches
Filter out all botched matches