protected function _attributes($params, $method = null, array $options = []) {
		$defaults = ['escape' => true, 'prepend' => ' ', 'append' => ''];
		$options += $defaults;
		$result = [];

		if (!is_array($params)) {
			return !$params ? '' : $options['prepend'] . $params;
		}
		foreach ($params as $key => $value) {
			if ($next = $this->_attribute($key, $value, $options)) {
				$result[] = $next;
			}
		}
		return $result ? $options['prepend'] . implode(' ', $result) . $options['append'] : '';
	}