'Checks that a key exists in a bucket'

def check_for_key(self, key, bucket_name=None):

    if (not bucket_name):
        (bucket_name, key) = self.parse_s3_url(key)
    bucket = self.get_bucket(bucket_name)
    return (bucket.get_key(key) is not None)
