how about just wrapping it in an unless statement? (updated code)