Did a little research, looks like `$UID` is an environment variable that you can use over this.

For consistency with the rest of the script, can you use `test` over `[[ ... ]]`?