Added allow_empty_items parameter
fix2