public function add($key, $value, $color = null) { $array = array('value' => $value); if (!is_null($color)) { $array['color'] = $color; } $this->options[$key] = $array; return $this; }