import re


def is_valid_mac(mac):
    """return True if the given string is a well-formed MAC address
    """
    if not mac:
        return False
    res = re.search("^([a-zA-Z0-9]{2}:){5}[a-zA-Z0-9]{2}$", mac) is not None
    return res