If you want to check for false and alert if not, then no there isn’t.
If you use
if(val), then anything that evaluates to ‘truthy’, like a non-empty string, will also pass. So it depends on how stringent your criterion is. Using