Throw exception in trigger, when data is not an array