protected function _anyItem($items, $key)
    {
        foreach ($items as $item) {
            if (isset($item[$key]) && $item[$key]) {
                return true;
            }
        }
        return false;
    }
protected function _anyItem($items, $key)
    {
        foreach ($items as $item) {
            if (isset($item[$key]) && $item[$key]) {
                return true;
            }
        }
        return false;
    }
protected function _anyItem ( $ items , $ key ) { foreach ( $ items as $ item ) { if ( isset ( $ item [ $ key ] ) && $ item [ $ key ] ) { return true ; } } return false ; }
Check the set of items to have an item with the given key set to a
truthy value.
@param  array  $items array of item data
@param  string $key   array key to check
@return bool true if any item has a truthy value at the given key
Check the set of items to have an item with the given key set to a truthy value .