Modifying Rsync script to check source

Hi
I am running rsyncs between a raid attached server and a nas device, which works fine.
I am using the --delete to ensure that its kept in sync. And running a log at the end of the sync for me to check. this i am running from a cron
Problem is if the part of the raid fails on the server the sync still happens resulting the data being wiped on the nas. Is there a way of writing a script that checks that the source data is valid and available before allowing the sync to run.

rsync -aWv  --stats progress  --delete --ignore-errors --exclude ".DS_Store"  --exclude ".HSancillary"  -- \
exclude ".HSxmap" --exclude ".HSResource"  /Raid/  /mnt/chi-dr/RAID/  \
 >> /mnt/chi-dr/Rsync_Logs/Chi-Raid_rsync.`date +%w`.log 2>&1

Regards
Treds

why not do a RAID integrity check as part of your script before the rsync. Something like this pseudo code should work (note, this is not REAL shell, just logic):

raidcmd --check
if ( $? != 0 )
cmd = null
else
cmd = rsync 
run cmd 2>&1 file.log