/** * If a user is authenticated, the return value specifies if the user has just registered. * If no user is authenticated, the return value is null. * * @return bool|null */ public function isNewUser() { return $this->session->hasJustRegistered(); }