won't be better something like
```php
if (strpos($homepage, 'http')!== 0) {
```
?
a domain name like `myhttpserver.com` would pass the check