public function isUnique($as_text = false) { if ($as_text) { $r = array('0' => __('Yes'), '1' => __('No')); } else { $r = array('0' => true, '1' => false); } return $r[$this->_non_unique]; }