exists() public method

Example: if ($object->exists()) { echo "Object exists!"; }
public exists ( ) : boolean
return boolean
 public function testDoesExistFalse()
 {
     $this->connection->getObject(Argument::any())->willThrow(new NotFoundException(null));
     $object = new StorageObject($this->connection->reveal(), 'object.txt', 'bucket');
     $this->assertFalse($object->exists());
 }