А, ну кончно, if (!empty($res)) { die($res); } :)