BUG: fix two missing array creation failure checks