Fixed a small bug where empty {} or [] returned nil.