Adds error check for nil site_name