instead of using array_search, you could simply check if ``$this->chain[get_class($strategy)] === $strategy``, as you are using the class name as key currently