def METHOD_NAME(self) -> StatusResponse:
    """
    Check connection to the handler.
    Returns:
        HandlerStatusResponse
    """
    response_code = StatusResponse(False)
    need_to_close = self.is_connected is False
    try:
        self.connect()
        response_code.success = True
    except Exception as e:
        log.logger.error(f'Error connecting to SurrealDB, {e}!')
        response_code.error_message = str(e)
    finally:
        if response_code.success is True and need_to_close:
            self.disconnect()
        if response_code.success is False and self.is_connected is True:
            self.is_connected = False
    return response_code