Detect if any edge/edges are selected in a mesh
@classmethod
def poll( self, context ):

    #Get active object
    act_obj = context.active_object

    #Check for edit mode and mesh type        
    if act_obj.mode == 'EDIT' and act_obj.type == 'MESH':
        
        #Get selected edges from bmesh        
        me = act_obj.data
        bm = bmesh.from_edit_mesh(me)

        edges_selected = [e for e in bm.edges if e.select]
    
        return edges_selected