${If} ${FileExists} "\*.*" is a valid command!

You will just have to test $0:

${If} ${FileExists} "$0\*.*"
${AndIf} $0 != ""
....