Safe guard against crashes with nil values in array and dictionary literals