public function getDashboards() { $dashboards = $this->getUserDashboards(); if (empty($dashboards)) { $dashboards = array($this->getDefaultDashboard()); } return $dashboards; }