Vérifiez si la fonction PHP renvoie null ou rien

J'ai ce code

 $return = $ep->$method($params);
 if ($return === null) {
  throw new Exception('Endpoint has no return value');
 }
 return $return;

Est-il possible de distinguer entre une méthode qui retourne null et une méthode qui ne retourne rien?

source d'informationauteur Bart van Heukelom