get('Buckets') ?: array(); // If only the names_only set, change arrays to a string if ($this->get('names_only')) { foreach ($buckets as &$bucket) { $bucket = $bucket['Name']; } } return $buckets; } }