How do I load entities with Null values? The following fails with an exception.

\Drupal::entityTypeManager()-&gt;getStorage('foo_module_division')-&gt;loadByProperties(['enabled'=&gt;TRUE, 'parent_code'=&gt; NULL]).


How else do I specify I want to load entities whose parent_code field is NULL?
The example of getting articles that has empty body:

  $entityStorage = \Drupal::entityTypeManager()-&gt;getStorage('node');
  $query = $entityStorage-&gt;getQuery();
  $query-&gt;condition('type', 'article');
  $query-&gt;notExists('body');
  $nids = $query-&gt;execute();
  $nodes = $entityStorage-&gt;loadMultiple($nids);