public static function search($search, $downloadable, $options) {
        try {
            return api::get_courses($search, $downloadable, !$downloadable, $options);
        } catch (moodle_exception $e) {
            \core\notification::add(get_string('errorcourselisting', 'block_community', $e->getMessage()),
                \core\output\notification::NOTIFY_ERROR);
            return [[], 0];
        }
    }