public function getUserByUsername(string $username, bool $includeExtra = false) : array
{
try {
$userId = $this->getUserIDByUsername($username);
} catch (UserNotFound $ex) {
return [];
}
if (empty($userId)) {
return [];
}
return $this->getUserAccount($userId, $includeExtra);
}