Update Bucket.php

Change bucket method exists to hasKey.