return empty array if mailbox is empty while listing messages