Change record status: 
Project: 
Introduced in branch: 
8.x
Introduced in version: 
8.0-ALPHA3
Description: 

In Drupal 7 *_load() functions (node_load(), comment_load(), etc.) derived from entity_load() and also the menu loaders (*_load()) had returned FALSE in case of non-existent items. Now all *_load() functions should return NULL when the entity (or requested object) is not found.

Also, the load() method of your entity storage controllers (introduced in http://drupal.org/node/2032175) should return NULL when failing to retrieve the entity.

Entity loading wrapper

D7

<?php
function my_entity_load($id) {
 
$entities = entity_load('my_entity', array($id));
  return
$entities ? $entities[$id] : FALSE;
}
function
my_entity_load_multiple($ids) {
  return
entity_load('my_entity', $ids);
}
?>

D8

<?php
function my_entity_load($id) {
  return
entity_load('my_entity', $id);
}
function
my_entity_load_multiple($ids) {
  return
entity_load_multiple('my_entity', $ids);
}
?>

Controller loading method

D8

<?php
class MyEntityStorageController extends EntityStorageController {
  ...
  public function
load($id) {
   
// Do whatever you need to get your entity.
   
...
    return !empty(
$entity) ? $entity : NULL;
  }
  ...
}
?>
Impacts: 
Module developers
Updates Done (doc team, etc.)
Online documentation: 
Not done
Theming guide: 
Not done
Module developer documentation: 
Not done
Examples project: 
Not done
Coder Review: 
Not done
Coder Upgrade: 
Not done
Other: 
Not done