bucket = s3.Bucket('my-bucket')
key = 'dootdoot.jpg'
objs = list(bucket.objects.filter(Prefix=key))
if len(objs) > 0 and objs[0].key == key:
    print('Exists!')
else:
    print("Doesn't exist")
check if a key exists in a bucket in s3 using boto3