Error message explains everything. PHP5.3 doesn't support casting function output automatically to array and accessing it like this.
Since PHP 5.4 it's possible to do exactly that Example
Prior to PHP 5.3, you'll need to use a temporary variable.
EDIT
by casting
I ment dereferencing
.