protected function getArrayAttributeByKey($key)
    {
        return isset($this->attributes[$key]) ?
                    $this->fromJson($this->attributes[$key]) : [];
    }
protected function getArrayAttributeByKey($key)
    {
        return isset($this->attributes[$key]) ?
                    $this->fromJson($this->attributes[$key]) : [];
    }
protected function getArrayAttributeByKey ( $ key ) { return isset ( $ this -> attributes [ $ key ] ) ? $ this -> fromJson ( $ this -> attributes [ $ key ] ) : [ ] ; }
Get an array attribute or return an empty array if it is not set.

@param  string  $key
@return array
Get an array attribute or return an empty array if it is not set .