if (isset($this->weights[$weight_class_id])) { return $this->weights[$weight_class_id]['unit']; } else { return ''; }