In fact, why not:
```
$output = $this->curlCall($url);

return false !== $output;
```
Then you can also drop the InvalidMagentoUrlException