'Check that the item is the correct type to apply this rule to.'

def item_is_correct_type(self, item):

    if (not isinstance(item, self.base_target_type)):
        return False
    if (self.type == 'link    submission'):
        return (not item.is_self)
    elif (self.type == 'text    submission'):
        return item.is_self
    return True
