So basically, I am checking if a window is created in SDL and if not a runtime error is thrown. The following was suggested to me by someone in code review.
i