Check if an error has occurred or not.
The error variable to check.
True if an error has occurred, false otherwise.