change [] to array (PHP5.3 support)