diff --git a/src/bootstrap.php b/src/bootstrap.php
index 2fc9f40edb38a8a37b9ac5f75940864d17a1aaa5..7de102b5f461bb14c3e1b86aed088202d77de383 100644
--- a/src/bootstrap.php
+++ b/src/bootstrap.php
@@ -29,7 +29,7 @@ function exception_handler(\Exception $exception)
     $responsepacket->setError($error)
         ->setJtlrpc("2.0");
 
-    if (isset($requestpacket) && $requestpacket !== null && is_object($requestpacket) && get_class($requestpacket) == "jtl\\Core\\Rpc\\RequestPacket") {
+    if (isset($requestpacket) && $requestpacket !== null && $requestpacket instanceof RequestPacket) {
         $responsepacket->setId($requestpacket->getId());
     }
 
@@ -38,8 +38,7 @@ function exception_handler(\Exception $exception)
 
 set_exception_handler('exception_handler');
 
-try
-{
+try {
     $logDir = CONNECTOR_DIR . DIRECTORY_SEPARATOR . 'logs';
     if (!is_dir($logDir)) {
         mkdir($logDir);
@@ -51,8 +50,6 @@ try
     $application = Application::getInstance();
     $application->register($connector);
     $application->run();
-}
-catch (\Exception $e)
-{
+} catch (\Exception $e) {
     exception_handler($e);
 }