Added bucket_exists function #6443
Working implementations with some manual testing and error handling #6443