Unexpected array, add an if to stop the error.