protected function filter($meta, $filters)
    {
        foreach ($filters as $key => $value) {
            if (!isset($meta[$key]) || fnmatch($value, $meta[$key]) === false) {
                return false;
            }
        }
        return true;
    }
protected function filter($meta, $filters)
    {
        foreach ($filters as $key => $value) {
            if (!isset($meta[$key]) || fnmatch($value, $meta[$key]) === false) {
                return false;
            }
        }
        return true;
    }
protected function filter ( $ meta , $ filters ) { foreach ( $ filters as $ key => $ value ) { if ( ! isset ( $ meta [ $ key ] ) || fnmatch ( $ value , $ meta [ $ key ] ) === false ) { return false ; } } return true ; }
Filter the metadata for matches.

@param $meta
@param $filters
@return bool
Filter the metadata for matches .