Adding error to enforce array return value.