maybe check first if the given $status is contained in the $statsTexts array?