This entire bit could be shortened, so that you don't have to alloc a 0-zero length array.

```
if(!(selection && [selection length])) {
  return alert("Make sure you've selected a symbol, or a layer that belongs to one before you try to sync.");
}
```