if($email instanceof \Elgg\Email) $object
if($item instanceof \ElggEntity) elseif($item instanceof \ElggRiverItem) elseif($item instanceof \ElggRelationship) elseif(is_callable([ $item, 'getType']))
elgg_extract($key, $array, $default=null, bool $strict=true)
Checks for $array[$key] and returns its value if it exists, else returns $default.
if(empty($notifications)||! $recipient instanceof \ElggEntity) $sorted
foreach($notifications as $index=> $notification) if(empty($sorted)) $unknowns
if(!empty($unknowns)) $output
elgg_echo(string $message_key, array $args=[], string $language='')
Elgg language module Functions to manage language and translations.