def _find_value_by_key(a_dict, key):
    """Find a key and return it, with a flag saying if it was found"""
    try:
        val = a_dict[key]
    except KeyError:
        return (False, None)
    return (True, val)