"working", self::FINISH => "finish", ]; if ('' === $index) { return $arr; } if (isset($arr[$index])) { return $arr[$index]; } else { return ''; } } }