Can you update this to match the rest of our prevalent script type and use `if [ ... ]; then` instead of the two-liner? :)