public function fonts($group = null) { $fonts = $this->dao->getFonts(); if ($group != null) { $fonts = $this->filterFontsByGroup($group, $fonts); } return $this->returnJson($fonts); }