src/YouTube.php
private function checkFilters($parameters)
    {
        $atLeastOneFilterSet = false;

        foreach ($this->filters as $filter) {
            if (array_key_exists($filter, $parameters)) {
                $atLeastOneFilterSet = true;
            }
        }

        if (!$atLeastOneFilterSet && !empty($this->filters)) {
            throw new \InvalidArgumentException(
                'Missing a required filter parameter (' . join(', ', $this->filters) . ').'
            );
        }
    }
private function checkFilters($parameters)
    {
        $atLeastOneFilterSet = false;

        foreach ($this->filters as $filter) {
            if (array_key_exists($filter, $parameters)) {
                $atLeastOneFilterSet = true;
            }
        }

        if (!$atLeastOneFilterSet && !empty($this->filters)) {
            throw new \InvalidArgumentException(
                'Missing a required filter parameter (' . join(', ', $this->filters) . ').'
            );
        }
    }
Check if at least one of the filters currently set in $this->filters occurs
in $parameters.

@access  private
@param   array   $parameters An array of properties passed to the called method.
@throws  \InvalidArgumentException