This is my code for true on everything but empty string, null and false:
if (routeinfo[\"no_route\"] == \"\" || routeinfo[\"no_route\"] == null || routeinfo[
package:quiver has an isEmpty function that returns true if the argument is null or the empty string.
true
null
It's also trivial to implement such a function yourself.