Remove unnecessary if statement
Check whether class exists before testing whoops handler