Properly check for S3 objects.