product_helper = $product_helper; } /** * Returns whether the legacy AI code paths should load. * * @return bool `true` when Premium is active and predates the AI restructure. */ public function is_met() { if ( ! $this->product_helper->is_premium() ) { return false; } $premium_version = $this->product_helper->get_premium_version(); if ( $premium_version === null ) { return false; } return \version_compare( $premium_version, self::NEW_AI_STRUCTURE_PREMIUM_VERSION, '<' ); } }