Check the incoming value before converting it to an Array in oaeUtil.toArray()