Changed functioncalls with arraykeys
ex. 
$this->function()[key];
to  
$tmp = $this->function();
$tmp[key]