def _is_mk_not_present(self, tag):
        '''This function gets a image html and states if the MK is present or not according to img class value:
        if the MK is present the class value equals 'PhotoAsist'' otherwise it equals 'PhotoAsistno' '''       
       
        if  tag is None or tag.attrMap is None:
            return False
        
        if tag.attrMap in 'class' and tag['class'] == self.__MK_NOT_PRESENT_IMG_CLASS_STR:        
            return True
        return False
dataset/ETHPy150Open ofri/Open-Knesset/presence/present_list.py/KnessetPresenceParser._is_mk_not_present/swapped operands of `in`