public function isValid(array $values)
    {
        foreach ($values as $value) {
            if (!$this->checkType($value)) {
                return false;
            }
        }

        return true;
    }
public function isValid(array $values)
    {
        foreach ($values as $value) {
            if (!$this->checkType($value)) {
                return false;
            }
        }

        return true;
    }
public function isValid ( array $ values ) { foreach ( $ values as $ value ) { if ( ! $ this -> checkType ( $ value ) ) { return false ; } } return true ; }
Is the value a valid one?

@param array $values The values to be checked

@return bool
Is the value a valid one?