def get_portchannel_members(pchannel):
    """Gets the members of an existing portchannel

    Args:
        pchannel (dict): port-channel dict

    Returns:
        list: empty if currently no members, otherwise
            list of Ethernet interfaces that make up
            the given port-channel

    Note:
        Specific for Ansible module(s).  Not to be called otherwise.

    """
    try:
        members = pchannel['TABLE_member']['ROW_member']
    except KeyError:
        members = []

    return members