def METHOD_NAME(field_desc):
    for options_field_desc, value in field_desc.GetOptions().ListFields():
        if options_field_desc.name == 'resource' and value:
            return True
    return False