Change record status: 
Project: 
Introduced in branch: 
11.5.x
Introduced in version: 
11.5.0
Description: 

user_picture_enabled is now deprecated, there is no replacement, check the field definition directly.

Before
user_picture_enabled()

After

$field_definitions = \Drupal::service('entity_field.manager')->getFieldDefinitions('user', 'user');
isset($field_definitions['user_picture']);
Impacts: 
Module developers
Themers