$: Add return type annotation and fix on function for empty result
$: Add return type annotation and fix on function for empty result

ioBroker/ioBroker.javascript,ioBroker/ioBroker.javascript,ioBroker/ioBroker.javascript