private function exceptionIfFalse($result) { if (false === $result) { $errorDetails = error_get_last(); throw new \RuntimeException($errorDetails['message']); } }