Added anyError optional call to reduce errors from an array to a single error