public static function addItem(Item $item, $check = true) { if (!$check || $item->match(self::$query)) { self::$items[] = $item; } }