Is_service function for use with templates

I’d love to see an is_service function similar to is_state but for determining if a service is present.

example:

is_service('light.toggle') 
is_service('lock.toggle')
is_service('ozw.set_usercode')
is_service('zwave.set_config_parameter')

I’d find that handy especially if you’re reloading an integration and a script/automation fires rather than a error being logged, someone could put in conditions to notify that the service is missing, bail out, etc.