verify if the connection exist before creating