Sometimes a service should only run when something is there, or only when something isn’t. A backup job that only makes sense when the backup disk is plugged in, or a sync that should pause while you work on the server. I’d reach for ConditionPathExists= before writing an if in a wrapper script.
Before systemd starts the unit, it checks the path. If the condition doesn’t hold, the start is skipped, mostly silently, and the unit does not end up in the failed state. Put a ! in front to flip the test. A maintenance flag looks like this:
sudo systemctl edit mysync.service
[Unit]
ConditionPathExists=!/etc/mysync/maintenance
Now sudo touch /etc/mysync/maintenance pauses the job (handy when a timer starts it every hour), and removing the file lets it run again on the next trigger. For the backup example you would turn it around and check for a marker file on the disk itself, like ConditionPathExists=/mnt/backup/.backup-disk. You can add several conditions; all of them have to be true unless you mark some with a | to make them alternatives.
The thing to understand is that a condition doesn’t wait. It looks once, at the moment the start job runs, and if the path is not there the unit is skipped. Nothing retries it later. So for a disk that is still being mounted at boot, ordering with RequiresMountsFor= is the better tool, and a condition is for “run or don’t”. The skipped start is logged, so when a job seems to do nothing, check systemctl status and the journal of the unit before you start debugging the script. If you’d rather have a loud failure instead of a quiet skip, the Assert versions (AssertPathExists=) abort the start with an error.
Further reading: systemd.unit(5) manual page