Use r directly - match objects have a __nonzero__ for this purpose.