def _parse_bin_arg(kwargs):
    """
    Returns the value if 'binary' argument is found, otherwise returns 
    false. Throws an error if the argument is not a boolean.
    """
    if 'binary' in kwargs:
        binary_arg = kwargs['binary']
        if not isinstance(binary_arg, bool):
            raise TypeError("'binary' input argument must be of type bool!")
        return binary_arg
    else:
        return False
