How to check if layer with specific name exists?

Just noticed there’s new batchPlaySync() with the only difference from batchPlay() being the return type. Probably that’s why typescript complained about synchronousExecution option (and never was in TS types, probably because that was the plan to have separate function all along).