Removing temporary array expression usage

Fixes issue where a temporary array expression cannot be assigned as a reference in PHP 5.4