private function checkReportIsValid($report) { if (!$report instanceof DataTable) { throw new \Exception('Insight can be only generated for reports returning a dataTable'); } }