For example:
tldr --search e2scruball
No commands matched your search term.
echo $?
0
This should return 1 since nothing was found, then this would work as intended:
function man(){
if tldr --search "$1" &>/dev/null; then tldr "$1"; else /usr/bin/man "$1"; fi
}