Added check.defend(fn) method