what if $items is empty, this lets it pass but should it? I guess the user could use the arrays::filter method before this in the spec to check size first if they wish