private function is_media_screen()
    {
        $current_screen = \get_current_screen();

        if (isset($current_screen->base) && $current_screen->base === 'upload') {
            return true;
        }

        return false;
    }
private function is_media_screen()
    {
        $current_screen = \get_current_screen();

        if (isset($current_screen->base) && $current_screen->base === 'upload') {
            return true;
        }

        return false;
    }
private function is_media_screen ( ) { $ current_screen = \ get_current_screen ( ) ; if ( isset ( $ current_screen -> base ) && $ current_screen -> base === 'upload' ) { return true ; } return false ; }
A simple utility for checking whether to render the media JS or not.

@since 1.0.0

@return bool
A simple utility for checking whether to render the media JS or not .