<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def has_relationship(self, left_id, left_type, right_id, right_type, rel_type='Related To'):
 """ Checks if the two objects are related Args: left_id: The CRITs ID of the first indicator left_type: The CRITs TLO type of the first indicator right_id: The CRITs ID of the second indicator right_type: The CRITs TLO type of the second indicator rel_type: The relationships type ("Related To", etc) Returns: True or False if the relationship exists or not. """

        data = self.get_object(left_id, left_type)
        if not data:
            raise CRITsOperationalError('Crits Object not found with id {}'
                                        'and type {}'.format(left_id,
                                                             left_type))
        if 'relationships' not in data:
            return False
        for relationship in data['relationships']:
            if relationship['relationship'] != rel_type:
                continue
            if relationship['value'] != right_id:
                continue
            if relationship['type'] != right_type:
                continue
            return True
        return False