public function getAuth(array $defaultAuth) { return count($this->auth) > 0 ? $this->auth : $defaultAuth; }