javascript array workaround for checking for empty boxes
>:( it works now at least