I'd suggest caching F::app() in a variable as it's used multiple times and use it also to fetch the global variable:

```php
$app = F::app();

if ( $app->checkSkin( 'oasis' ) && !empty( $app->wg->EnableVideoPageRedesign ) ) {
```