How to just try to write and deal with the error? Same as writing to a file or database. I do not see the meaning in the idiom:
check if *this* is going to work do *this*
You just enter a smaller and harder to test window of opportunity:
check if *this* is going to work child thinks "Ha, fooled you, I'm off now!" do *this*, which now fails!
source share