function($color) { if (is_null($color)) { $this->throwError('color expected for blue()'); } return $color[3]; }