def _matches(params, **kwargs):
    """ See if keyword arguments are a subset of `params` """
    for key, value in kwargs.items():
        if value is None:
            continue
        if key not in params:
            continue
        if params.get(key) != value:
            return False
    return True
