protected function hasUsers() { try { $users = $this->app['users']->getUsers(); if (empty($users)) { return false; } return true; } catch (TableNotFoundException $e) { return false; } }