def check_for(is_check=True):
    """Add an attribute to recognize error checking methods."""
    # wrapper
    def decorator(func):
        func._check_for = is_check
        return func

    return decorator