fixed broken AMQP defintion
checking for empty array rather than null