FIX: check for empty array itemUIds to avoid mysql error