optimizations = $optimizations; foreach ( $this->features as $feature => $method ) { if ( $this->optimizations->feature_enabled( $feature, $this->group ) ) { if ( method_exists( $this, $method ) ) { $this->$method(); } } } } }