allow_empty_items parameter
default set to false
add fix after merge