make sure that MultiArray::hasData() is false when prod(shape) == 0
simplified acc_detail::hasDataImpl()