def METHOD_NAME(self, port_num):
    for port_cfg in self._port_cfgs:
        if int(port_cfg.index) == port_num:
            sfp_idx = self.mac_to_sfp[int(port_cfg.lanes.split(',')[0])]
            if sfp_idx >= 0:
                try:
                    with open(self.f_sfp_present.format(sfp_idx), 'r') as sfp_file:
                        return 1 == int(sfp_file.read())
                except IOError as e:
                    DBG_PRINT(str(e))
    return False