* @param key unique record identifier
* @return whether record exists or not
* @throws AerospikeException if command fails
*/
public final boolean exists(Policy policy, Key key) throws AerospikeException {
ExistsCommand command = new ExistsCommand(cluster, policy, key);
command.execute();
return command.exists();
}