isHTTPS() function is used to check if a url begins with
https://
echo isHTTPS('https://somesite.com'); //true
echo isHTTPS('http://somesite.com'); //false
echo isHTTPS('some/url'); //false