Wouldn't it be enough to use "if (recentMatch)"? ;-)