Decorator that will check whether the "table_name" keyword argument
    to the wrapped function matches a registered Orca table.

def check_is_table(func):
    """
    Decorator that will check whether the "table_name" keyword argument
    to the wrapped function matches a registered Orca table.

    """
    @wraps(func)
    def wrapper(**kwargs):
        if not orca.is_table(kwargs['table_name']):
            abort(404)
        return func(**kwargs)
    return wrapper