According to the Codex,
This function is defined on most admin pages, but not all. Thus there
are cases where is_admin() will return true, but attempting to call
get_current_screen() will result in a fatal error because it is not
defined. One known example is wp-admin/customize.php.