public function groupExists($id = null, $value = null)
 {
     $exists = false;
     $id || ($id = Input::get("search_id"));
     $value || ($value = Input::get("search_value"));
     $group = GroupItem::alreadyExistingItem("group_name", $value);
     if ($group) {
         if (!$id || $id && $id != $group->id) {
             $exists = true;
         }
     }
     if (Request::wantsJson()) {
         return Response::json(array('valid' => !$exists));
     }
     return $exists;
 }