``$this->step->getKeywordType()`` is always in this array because of the way it is defined in Gherkin, so the check can be removed entirely IMO