Fix failing during validation if array return value given