Moved the isPresent method from NSString to NSObject for more generality.