jms.php: less indenting

Check for 0 matches right away; return immediately.  Lets us indent
one less level.