public function getBlock($key, $default = null)
    {
        if (!isset($this->attributes['block'])) {
            return $default;
        }
        if (!is_null($key) && !array_key_exists($key, $this->attributes['block'])) {
            return $default;
        }
        if (is_null($key)) {
            return $this->attributes['block'];
        }
        if (!is_null($key) && array_key_exists($key, $this->attributes['block'])) {
            return $this->attributes['block'][$key];
        }
    }