protected function isArray($key) : bool
    {
        if (is_array($this->param[$key]) && !$this->hasAttribute($key)) {
            $this->errors[$key.self::ERROR] = $this->convertToFieldName($key).' value must be valid array.';
            return false;
        }

        return true;
    }