Update sanity.php

Added function is_external_resource(). The function checks whether url specified in the resource variables is a valid URL. The resource variables (plugin_js, admin_js, plugin_css, admin_css) then feed into the function and are checked wether the paths inside the array are valid URLS (external resources) or not valid URLS (not external resources)