Add 'exists' method.