The easiest way to do this: by using the command dirand checking the environment variable ERRORLEVEL using the EXISTS directive.
set inputFolder=%1
set extension=%2
IF EXIST %inputFolder%\*.%extension% GOTO exists
goto end
:exists
echo exists
:end
source
share