if (!isset($row['slug']) || empty($row['slug']) || substr($row['slug'], -1, 1) == "1") {