how about if ( ( $skin === null || $skin->getSkinName() === 'oasis' ) && ... ) { ... }