def METHOD_NAME(self, port_num):
    # Check for invalid port_num
    if port_num not in list(range(self.port_start, self.port_end + 1)):
        return False
    # Get path for access port presence status
    port_name = self.get_port_name(port_num)
    sysfs_filename = "qsfp_modprs" if port_num in self.qsfp_ports else "sfp_modabs"
    reg_path = "/".join([self.PORT_INFO_PATH, port_name, sysfs_filename])
    # Read status
    try:
        reg_file = open(reg_path)
        content = reg_file.readline().rstrip()
        reg_value = int(content)
    except IOError as e:
        print("Error: unable to open file: %s" % str(e))
        return False
    # Module present is active low
    if reg_value == 0:
        return True
    return False