public static function validate_download($id) { if (isnum($id)) { return (int) dbcount("('download_id')", DB_DOWNLOADS, "download_id='" . intval($id) . "'"); } return (int) false; }