public function exists()
    {
        try {
            $params = array();
            $body = null;
            $headers = array();
            $request = new RESTRequest(
                'GET', 'rest-apis/' . $this->name, $params, $body, $headers
            );
            $response = $this->client->send($request);
        } catch(\Exception $e) {
            return false;
        }
        return true;
    }