function seems pointless.
I mean, all the function does is
Who needs such a trivial function?
If I wanted to do that, I could just write it myself.
And then you discover that occasionally your program crashes.
What's going on?
Let's rewind and look at the original problem.