Don't have Telegram yet? Try it now!
https://eureka.ykyuen.info/2013/03/05/drupal-7-check-if-a-path-exists/
Drupal 7 - Check if a path exists