to return whether matched or not.